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 191726 - "Error" status is not supported in CppUnit framework
Summary: "Error" status is not supported in CppUnit framework
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: UnitTest Support (show other bugs)
Version: 7.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-08 12:45 UTC by soldatov
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 soldatov 2010-11-08 12:45:57 UTC
In NetBeans 7.0 test can be in 3 statuses (Passed, Failed, Error). CppUnit library supports 3 statuses also. I want to see all 3 statuses in "Test Results" tab also. Now "Passed" and "Failed" are supported only.

From cppunit tutorial:
CppUnit distinguishes between failures and errors. A failure is anticipated and checked for with assertions. Errors are unanticipated problems like division by zero and other exceptions thrown by the C++ runtime or your code.

Check it console:
newtestclass::testCpu : assertion
newtestclass::testGetCategory : OK
newtestclass::testGetType : error
newtestclass.cpp:32:Assertion
Test name: newtestclass::testCpu
assertion failed
- Expression: false

##Failure Location unknown## : Error
Test name: newtestclass::testGetType
uncaught exception of unknown type

Failures !!!
Run: 3   Failure total: 2   Failures: 1   Errors: 1