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.
Summary: | [72cat] Inconsistency between executing Test Suites in Java SE and Maven projects | ||
---|---|---|---|
Product: | projects | Reporter: | crazyjavahacking |
Component: | Maven | Assignee: | Milos Kleint <mkleint> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | CC: | mkleint, mmirilovic, musilt2 |
Priority: | P4 | ||
Version: | 7.2 | ||
Hardware: | PC | ||
OS: | Windows 7 x64 | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
crazyjavahacking
2012-06-07 21:30:15 UTC
I am not sure what you mean. Could you please describe the steps you followed in order to reproduce the issue? Thank you Sorry for not be clear enough. To reproduce: 1.) Open JUnitSampleProject and create tests for "teststorun" package 2.) Test the Ant Java SE project (ALT + F6) => the result will be 9 tests failed and 1 error 3.) Create empty Maven project and copy the content of "teststorun" package into source packages 4.) Create tests for that package 5.) Test the Maven Java SE project (ALT + F6) => the result woll be 18 tests failed and 2 errors this is because Maven project will execute also the test suite file and the Ant project will not I can now reproduce. Thank you. Milos any idea why maven executes both the individual test classes and the test suite resulting in reporting all test results twice? Did something change lately? BTW it does not happen in 7.1 (In reply to comment #2) > > 3.) Create empty Maven project and copy the content of "teststorun" package > into source packages > 4.) Create tests for that package > 5.) Test the Maven Java SE project (ALT + F6) > => the result woll be 18 tests failed and 2 errors > > this is because Maven project will execute also the test suite file and the Ant > project will not That's a feature/fault of maven surefire plugin. in the Create tests.. action's dialog you have the option to omit the creation of suite files. or you can configure the surefire plugin to run just the suite files or to omit executing them... In general it's not worth the effort to synchronize behaviour of IDE-generated Ant build scripts and Maven. Closing as won't fix. The maven behaviour appears to be maven standard, user can configure POM or omit generating/delete the suite file. |