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 - The name of CUnit test should start with test_
Summary: The name of CUnit test should start with test_
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: UnitTest Support (show other bugs)
Version: 7.3.1
Hardware: PC Linux
: P4 normal (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-24 14:53 UTC by SoX
Modified: 2014-04-14 14:32 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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,