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 212576 - Failed test should not fail whole build process (and therefore focus output window)
Summary: Failed test should not fail whole build process (and therefore focus output w...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: TestNG (show other bugs)
Version: 7.2
Hardware: PC Mac OS X
: P3 normal (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-16 11:32 UTC by Tomas Danek
Modified: 2012-05-17 15:41 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Danek 2012-05-16 11:32:28 UTC
Product Version: NetBeans IDE Dev (Build 201205150400)
Java: 1.7.0_04; Java HotSpot(TM) 64-Bit Server VM 23.0-b21
System: Mac OS X version 10.7.4 running on x86_64; US-ASCII; en_US (nb)
User directory: /Users/tomas/Library/Application Support/NetBeans/dev
Cache directory: /Users/tomas/Library/Caches/NetBeans/dev
------------------
- having failing testNG test in testuite and running suite results in build failure. This is inconsistent with JUnit and causes focusing Output window after suite execution.

To reproduce:

- open sample project http://wiki.netbeans.org/wiki/images/c/c0/JUnitSampleProject_TS_68_JUnit.zip
- select 'testtorun' package, invoke popup, Tools|Create tests, select testNG, otherwise leave defaults
- testcases and testsuite are generated
- run suite
- inspect failures in test results window
- rerun tests from test res. window -> after test execution, output window is focused which is annoying.
Comment 1 Tomas Danek 2012-05-16 11:52:34 UTC
seems like '-post-test-run-single' target needs 'ignore.failing.tests' property to be set in order not to fail.
Comment 2 Theofanis Oikonomou 2012-05-16 15:16:02 UTC
Thank you for the evaluation. Fixed: http://hg.netbeans.org/core-main/rev/c89a0e6f1bde
Comment 3 Quality Engineering 2012-05-17 15:41:29 UTC
Integrated into 'main-golden', will be available in build *201205170950* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/c89a0e6f1bde
User: Theofanis Oikonomou <theofanis@netbeans.org>
Log: Issue #212576 - Failed test should not fail whole build process (and therefore focus output window)