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 230826 - The "Test file" action should also work with TestNG xml files in Maven projects.
Summary: The "Test file" action should also work with TestNG xml files in Maven projects.
Status: RESOLVED WONTFIX
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-06 08:23 UTC by zephyrgr
Modified: 2016-07-07 08:38 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description zephyrgr 2013-06-06 08:23:26 UTC
When invoking the "Test file" action using the Compile on Save feature to run a TestNG xml file, the standard surefire:test target is called. This makes all tests run instead of the tests defined in the xml.
Comment 1 Milos Kleint 2013-06-06 08:27:08 UTC
what would be the surefire plugin cmd line execution configuration in this case? can the regular -Dtest=XX property be used?
Comment 2 zephyrgr 2013-06-06 12:11:27 UTC
I've done some searching and I was only able to find a way to specify the xml file from inside the pom.

Apparently it is not possible to specify it from the command line.

So it appears that this is a limitation of the surefire plugin.
Comment 3 Martin Balin 2016-07-07 08:38:08 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss