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 247679 - TestNG UI says no tests were executed but really were
Summary: TestNG UI says no tests were executed but really were
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: TestNG (show other bugs)
Version: 8.0.1
Hardware: PC Mac OS X
: P3 normal (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-03 17:43 UTC by LanceA
Modified: 2015-09-15 01:23 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
testng project with 1 test (16.38 KB, application/zip)
2014-10-03 17:43 UTC, LanceA
Details

Note You need to log in before you can comment on or make changes to this bug.
Description LanceA 2014-10-03 17:43:10 UTC
Created attachment 149699 [details]
testng project with 1 test

Attached is a sample project with one test file containing 2 tests.

If you run the test file, the UI says no tests were executed but they actually were run from the output window:

[TestNG] Running:
  Command line suite

[VerboseTestNG] RUNNING: Suite: "Command line test" containing "2" Tests (config: null)
[VerboseTestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeClass Samples.setUpClass()
[VerboseTestNG] PASSED CONFIGURATION: "Command line test" - @BeforeClass Samples.setUpClass() finished in 8 ms
[VerboseTestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeMethod Samples.setUpMethod()
[VerboseTestNG] PASSED CONFIGURATION: "Command line test" - @BeforeMethod Samples.setUpMethod() finished in 1 ms
[VerboseTestNG] INVOKING: "Command line test" - Samples.test()
everyproblemincomputersciencecanbesolvedbyaddinganotherlevelofindirection[VerboseTestNG] PASSED: "Command line test" - Samples.test() finished in 43 ms
[VerboseTestNG] INVOKING CONFIGURATION: "Command line test" - @AfterMethod Samples.tearDownMethod()
[VerboseTestNG] PASSED CONFIGURATION: "Command line test" - @AfterMethod Samples.tearDownMethod() finished in 0 ms
[VerboseTestNG] INVOKING CONFIGURATION: "Command line test" - @BeforeMethod Samples.setUpMethod()
[VerboseTestNG] PASSED CONFIGURATION: "Command line test" - @BeforeMethod Samples.setUpMethod() finished in 1 ms
[VerboseTestNG] INVOKING: "Command line test" - Samples.test01()
every problem in computer science can be solved by adding another level of indirection [VerboseTestNG] PASSED: "Command line test" - Samples.test01() finished in 2 ms
[VerboseTestNG] INVOKING CONFIGURATION: "Command line test" - @AfterMethod Samples.tearDownMethod()
[VerboseTestNG] PASSED CONFIGURATION: "Command line test" - @AfterMethod Samples.tearDownMethod() finished in 1 ms
[VerboseTestNG] INVOKING CONFIGURATION: "Command line test" - @AfterClass Samples.tearDownClass()
[VerboseTestNG] PASSED CONFIGURATION: "Command line test" - @AfterClass Samples.tearDownClass() finished in 0 ms
[VerboseTestNG] 
[VerboseTestNG] ===============================================
[VerboseTestNG]     Command line test
[VerboseTestNG]     Tests run: 2, Failures: 0, Skips: 0
[VerboseTestNG] ===============================================

===============================================
Command line suite
Total tests run: 2, Failures: 0, Skips: 0
===============================================
Comment 1 Theofanis Oikonomou 2015-09-14 13:19:28 UTC
Changeset: 89dfac716626
Author:    Theofanis Oikonomou <theofanis@netbeans.org>
Date:      2015-09-14 15:17
Message:
Comment 2 Quality Engineering 2015-09-15 01:23:57 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/89dfac716626
User: Theofanis Oikonomou <theofanis@netbeans.org>
Log: Task #247679 - TestNG UI says no tests were executed but really were