where is that test? is it in src/test/java? it should be somewhere in src/test/java or it will not be picked up
On 19 January 2012 10:04, kooper <[email protected]> wrote: > Hi, > I'm using fail-safe plugin for integration tests but it seems that plugin > does not see the tests. I have DeviceResourceIT.java that uses junit in it > it has test method IsRegisteredTest() but fail-safe says 0 test run: > @Test > public void IsRegisteredTest(){ > logger.debug("isRegisteredTest started"); > ClientResponse clientResponse = > webClient.performGet("http://localhost:8080/app/Device/" + > WebClientImpl.TEST_DEVICE); > ... > logger.debug("isRegisteredTest completed"); > } > > Here is the plugin configuration: > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-failsafe-plugin</artifactId> > <version>2.11</version> > <configuration> > <skipTests>false</skipTests> > <encoding>utf-8</encoding> > </configuration> > <executions> Simplify your life, use the default phases and have one execution <execution> <id>integration-test</id> <goals> <goal>integration-test</goal> <goal>verify</goal> </goals> </execution> </executions> Why are you adding the dependency here? it should be a (test scoped) dependency of your project, not the plugin > <dependencies> > <dependency><groupId>junit</groupId> > <artifactId>junit</artifactId> > <version>4.8.2</version> > </dependency> > > </dependencies> > </plugin> > > I've tried different configs added include tags, surfire dependency etc, but > it stills says: > > [INFO] --- maven-failsafe-plugin:2.11:integration-test (integration-test) @ > app--- > [INFO] Failsafe report directory: D:\Projects\app\target\failsafe-reports > > ------------------------------------------------------- > T E S T S > ------------------------------------------------------- > > Results : > > Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 > > [INFO] > [INFO] --- cargo-maven2-plugin:1.1.4:stop (stop-container) > > What could be the issue here? Can anyone help with it? > > Thanks in advance. > > > -- > View this message in context: > http://maven.40175.n5.nabble.com/fail-safe-plugin-does-not-see-test-tp5157259p5157259.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
