This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 236330

Summary: The name of CUnit test should start with test_
Product: cnd Reporter: SoX
Component: UnitTest SupportAssignee: issues@cnd <issues>
Status: NEW ---    
Severity: normal    
Priority: P4    
Version: 7.3.1   
Hardware: PC   
OS: Linux   
Issue Type: ENHANCEMENT Exception Reporter:

Description SoX 2013-09-24 14:53:29 UTC
When you follow this process : https://netbeans.org/kb/docs/cnd/c-unit-test.html#addtest to create a test, you can read this : "The newcunittest.c file contains an automatically generated test function, testFactorial, for the factorial() function of main.c."

So, when you create a test from existing sources, the name of the test for a function factorial() is testFactorial().

However, a better way could be to start the name of test by test_ to follow the instruction of the CUnit doc (http://cunit.sourceforge.net/doc/writing_tests.html) and to be compliant with the analysis tools of Unit Tests result. The test of function factorial() will be test_factorial().

Thanks a lot,