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 255721

Summary: Running or debugging of individual TestNG tests sometimes does not work
Product: java Reporter: Jiri Kovalsky <jkovalsky>
Component: TestNGAssignee: Theofanis Oikonomou <theofanis>
Status: NEW ---    
Severity: normal CC: jungi
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: Project reproducing inability to run individual TestNG tests.

Description Jiri Kovalsky 2015-10-06 09:22:44 UTC
Created attachment 156546 [details]
Project reproducing inability to run individual TestNG tests.

Product Version: NetBeans IDE 8.1 RC (Build 201510012201)
Java: 1.8.0_60; Java HotSpot(TM) 64-Bit Server VM 25.60-b23
Runtime: Java(TM) SE Runtime Environment 1.8.0_60-b27
System: Linux version 3.13.0-37-generic running on amd64; UTF-8; cs_CZ (nb)
User directory: /home/cesilko/.netbeans/8.1rc
Cache directory: /home/cesilko/.cache/netbeans/8.1rc

Description:
============
Under some circumstances users can neither run nor debug individual TestNG tests.

Steps to reproduce:
===================
1. Launch NetBeans IDE and open attached GreetingProject project.
2. Right click "Source Packages" node and invoke "Tools > Create/Update Tests" from popup menu.
3. In "Create Tests" dialog select "TestNG" framework and push "OK" button.
4. Right click "GreetingProject" project and invoke "Test" from its popup menu.
5. In "Test Results" output window right click "No test passed... > TestSuite Failed > cannot.run.individual.testng.test.AppNGTest.testMain Failed: ..." node and invoke "Run Again" from its popup menu.

Expected: The testMain test is run and you see that it failed again in the Test Results output window and no other test results.
Actual: "No tests executed:" appears in the Test Results window.