I already fixed the problem. It was incorrect surefire configuration. Regards, Gary Greenberg Staff Software Engineer Data Product Development, BI-A E: [email protected] M: 650-269-7902
[EmailSig-TaglineVersion] From: Arnaud bourree <[email protected]> Sent: Sunday, November 3, 2019 5:03 AM To: Greenberg, Gary <[email protected]> Cc: NetBeans Mailing List <[email protected]> Subject: Re: Why tests aren't executing? Hi, Where are unit tests located? src/test/java ? How are unit test classes named? myTest.java ? What is surefire plugin configuration? Regards, Arnaud Le jeu. 31 oct. 2019 à 23:41, Greenberg, Gary <[email protected]<mailto:[email protected]>> a écrit : Still having problems with the project that I have inherited from the contractor. I want to execute unit test, but when I select ‘Test’ from the project context menu I am getting: --- maven-resources-plugin:3.1.0:testResources (default-testResources) @ mnsbatch --- Not copying test resources --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ mnsbatch --- Not compiling test sources --- maven-surefire-plugin:2.22.2:test (default-test) @ mnsbatch --- Tests are skipped. ------------------------------------------------------------------------ BUILD SUCCESS ---------------- I did check project properties and there is no skip-tests = true anywhere in the actions. If I try to run a particular test file, I am getting the same thing. I am not blaming it on Netbeans, as I am getting the same result if I run “mvn test” from the command line, but will appreciate any help. Gary Greenberg Staff Software Engineer Data Product Development, BI-A E: [email protected]<mailto:[email protected]> M: 650-269-7902 [EmailSig-TaglineVersion]
