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 229446 - CUnit result evaluation not correct
Summary: CUnit result evaluation not correct
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: UnitTest Support (show other bugs)
Version: 7.3
Hardware: PC All
: P3 normal (vote)
Assignee: igor_nikiforov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-07 09:07 UTC by heuckeg
Modified: 2013-05-29 06:25 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
1 - console output (text) 2 - test window (png) (6.69 KB, application/zip)
2013-05-07 09:07 UTC, heuckeg
Details
Attachment to comment 3 (16.06 KB, application/zip)
2013-05-24 11:50 UTC, heuckeg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description heuckeg 2013-05-07 09:07:01 UTC
Created attachment 134169 [details]
1 - console output (text) 2 - test window (png)

When adding CUnit tests to a project and running the tests,

1. the summary title line is consumed by CnCppUnitTestHandler and missed in output window (rest of summary is there but for unskilled users not interpretable because of missing head line)
See console output in attachment.

if the tests are divided in more than one test suite, 
2.1 display in test result window is not correct (suite 1 seem not be finished in a correct way). 
2.2 tests of first test suite are not recorded
See png in attachment
Comment 1 igor_nikiforov 2013-05-24 10:24:46 UTC
Unfortunately, I cannot reproduce neither of the described issues.

I've tried the latest IDE on
  - Windows XP with Cygwin;
  - Ubuntu 8.04.

On both systems I see 
     CUnit - A Unit testing framework for C - Version 2.1-2
     http://cunit.sourceforge.net/
title.

The several test suites run also works fine.

Could you, please, try the latest NetBeans Dev build and check if the issue is still exists for you.

If it is, please, tell what tool collection you are using on Windows Cygwin or MinGW or something else.
Comment 2 soldatov 2013-05-24 10:45:42 UTC
Can you type "make test" in any terminal and attach you output?
Comment 3 heuckeg 2013-05-24 11:49:08 UTC
Hello,

added attachment2 [details] with picture of netbeans test window and output of make.

In the picture you see indeed the 2 title lines .. CUnit....http://....,
but it's missing the line
--Run Summary: Type      Total     Ran  Passed  Failed

Btw:
In the netbeans test window it's missing the runned tests of the first test suite...

Hope that helps.
Gunter
Comment 4 heuckeg 2013-05-24 11:50:32 UTC
Created attachment 134858 [details]
Attachment to comment 3
Comment 5 igor_nikiforov 2013-05-24 12:17:02 UTC
Thanks, now I see that the header is missed. And I can reproduce this on my Linux system.
Comment 6 igor_nikiforov 2013-05-27 09:19:21 UTC
The issues are resolved:
  http://hg.netbeans.org/cnd-main/rev/ff6ace938d1a

Now Output window should contain not stripped output, and Test Results log window will display table headers.

The second issue is resolved as well. I was able to reproduce it by adding one more suite to the same test file.
Comment 7 igor_nikiforov 2013-05-27 10:46:55 UTC
Better fix for second issue:
  http://hg.netbeans.org/cnd-main/rev/ac087cce3b73
Comment 8 Quality Engineering 2013-05-28 14:14:46 UTC
Integrated into 'main-golden', will be available in build *201305281155* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/ff6ace938d1a
User: igor_nikiforov <igor_nikiforov@netbeans.org>
Log: Bug 229446 - CUnit result evaluation not correct  - fix.
Comment 9 Quality Engineering 2013-05-29 02:05:20 UTC
Integrated into 'main-golden', will be available in build *201305282301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/ac087cce3b73
User: igor_nikiforov <igor_nikiforov@netbeans.org>
Log: Bug 229446 - CUnit result evaluation not correct - additional fix.
Comment 10 heuckeg 2013-05-29 06:25:09 UTC
Well done!
Now working as expected.
Thanks, Gunter