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 186274 - Support Re-Run for parametrized failures
Summary: Support Re-Run for parametrized failures
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: JUnit (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 normal (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-18 06:42 UTC by Alexei Mokeev
Modified: 2012-10-28 01:50 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Project for reproduction (23.40 KB, application/zip)
2010-05-18 06:42 UTC, Alexei Mokeev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexei Mokeev 2010-05-18 06:42:27 UTC
Created attachment 99113 [details]
Project for reproduction

When you have parametrized Junit 4 tests and some of the failed then you can't re-run failures. The error message:
 /avm/.netbeans/6.9beta/var/cache/executor-snippets/junit.xml:82: The following error occurred while executing this line:
/avm/.netbeans/6.9beta/var/cache/executor-snippets/junit.xml:60: Invalid specification of test methods: "someTestMethod[1]"; expected: comma-separated list of valid Java identifiers
BUILD FAILED (total time: 0 seconds)


Please refer to attached project.

Steps:

- Select PTest.java and invoke "Test File"
- In Test Results select someTestMethod[1] and invoke "Run Again"
Comment 1 Alexei Mokeev 2010-07-26 12:08:17 UTC
Still the case for the trunk
Comment 2 Theofanis Oikonomou 2012-10-26 17:19:17 UTC
When running a parameterized test class, instances are created for the
cross-product of the test methods and the test data elements. So you cannot
run/debug only one test method. Removing the actions "Run Again" and "Debug" in such a case. Fixed: http://hg.netbeans.org/core-main/rev/1d2f898256d7
Comment 3 Quality Engineering 2012-10-28 01:50:23 UTC
Integrated into 'main-golden', will be available in build *201210280001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/1d2f898256d7
User: Theofanis Oikonomou <theofanis@netbeans.org>
Log: Issue #186274 - Support Re-Run for parametrized failures