Question

My doubt it's simple, when I'm executing JUnit test's directly from eclipse, surefire report isn't gerenated, even the folders (target/surefire/surefire-report) aren't generated but when I'm executing from cmd(mvn test) all reports or prints are generated.

Was it helpful?

Solution

I am assuming you use "run as -> Junit Test", which only runs the Junit testt themselves, without using surefire. If you rightclick on the project and choose "run as -> maven test" it would have the same effect as running mvn test from the commandline, i.e. your result (not reports) would be generated.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top