java - maven and unit testing - combining maven surefire plugin AND testNG eclipse plugin -
could please share way of unit testing in eclipse ? using surefire plugin, m2eclipse & maven, or testng eclipse plugin ? combine these alternatives ?
i'm using testng + maven surefire-plugin , had been using testng eclipse plugin year ago see results in testng view. started using maven, when "maven test phase" using m2eclipse, there console output , surefire reports can check in browser , choose test suite, test, or test method can set via testng.xml.
on other hand, if use surefire plugin , have specific settings regarding classpath etc., rely on, running tests via testng eclipse plugin doesn't have compatible code. using surefire plugin, classpath different - target/test-classes
, target/classes
- using testng plugin, using project classpath.
how go talking about?
is possible synchronize "maven test" using m2eclipse , surefire plugin testng eclipse plugin , view ?
edited: i'm wondering, why maven project ("java build path") output folder target/classes
src/main
, src/test
whereas surefire plugin makes 2 locations target/test-classes
, target/classes
thank your opinions.
lisa,
you can configure testng eclipse plug-in "watch" test-output directory. point target/surefire-reports , should see testng view update few seconds after maven build terminates.
Comments
Post a Comment