openworm / org.geppetto.solver.sph

PCI SPH Solver bundle for Geppetto
http://www.geppetto.org/
Other
9 stars 6 forks source link

mvn test won't ignore @Before and @After annotations after this change #40

Closed dkruchinin closed 10 years ago

dkruchinin commented 10 years ago

Without this change tests launched from command line via maven ignore @Before and @After annotations which makes it impossible to run unit tests outside of IDE.

Before the change: % mvn -Dtest="PCISPHSolverTest" test ... org.geppetto.solver.sph.internal.PCISPHSolverTest.testSolve15_NoNaN() Time elapsed: 1.037 sec <<< FAILURE! java.lang.NullPointerException at org.geppetto.solver.sph.SPHSolverService.updateStateTree(SPHSolverService.java:1126) at org.geppetto.solver.sph.SPHSolverService.solve(SPHSolverService.java:1112) at org.geppetto.solver.sph.internal.PCISPHSolverTest.testSolve15_NoNaN(PCISPHSolverTest.java:209) ... Tests run: 8, Failures: 8, Errors: 0, Skipped: 0

After the change: % mvn -Dtest="PCISPHSolverTest" test ... Tests run: 8, Failures: 0, Errors: 0, Skipped: 0