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 246649 - cppunit tests dont complete in test results window if new line written to standard out
Summary: cppunit tests dont complete in test results window if new line written to sta...
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: UnitTest Support (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal with 1 vote (vote)
Assignee: ilia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-22 15:56 UTC by stevebeard
Modified: 2015-09-23 01:25 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Suggested patch to fix the "corrupted display name" problem (4.43 KB, patch)
2015-09-22 10:58 UTC, ilia
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description stevebeard 2014-08-22 15:56:03 UTC
If a new line character is written to standard output during the execution of a cppunit test, then that test will not be presented in the test results window in netbeans ide. The console output for the cppunit test is as expected.

a simple example test method that will display issue for me:

void MyTestClass::testMethod() {
    std::cout << std::endl;
    CPPUNIT_ASSERT(FALSE);
}
Comment 1 Quality Engineering 2015-09-11 01:23:23 UTC
Integrated into 'main-silver', will be available in build *201509110002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/c1d30c294a6b
User: Ilia Gromov <ilia@netbeans.org>
Log: Fixing Bug #246649 - cppunit tests dont complete in test results window if new line written to standard out
Comment 2 ilia 2015-09-14 13:22:22 UTC
Also we can provide a custom TestListener which is now 
BriefTestProgressListener
Comment 3 ilia 2015-09-14 13:27:30 UTC
The provided fix solves the problem with not displayed tests in "test results" window.
However, the displayed test name may be corrupted, I will try to fix this issue.
Comment 4 Quality Engineering 2015-09-15 01:23:49 UTC
Integrated into 'main-silver', will be available in build *201509150002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/f359046e5183
User: Ilia Gromov <ilia@netbeans.org>
Log: Fixing Bug #246649 - cppunit tests dont complete in test results window if new line written to standard out
 - Exception
Comment 5 ilia 2015-09-22 10:58:40 UTC
Created attachment 156346 [details]
Suggested patch to fix the "corrupted display name" problem

Suggested patch to fix the "corrupted display name" problem
Comment 6 ilia 2015-09-22 13:49:00 UTC
Additional fix:
  http://hg.netbeans.org/cnd-main/rev/6aec4870f9e2
Comment 7 Quality Engineering 2015-09-23 01:25:23 UTC
Integrated into 'main-silver', will be available in build *201509230002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/6aec4870f9e2
User: Ilia Gromov <ilia@netbeans.org>
Log: Additional fix for Bug #246649 - cppunit tests dont complete in test results window if new line written to standard out