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>
                            <execution>
                                <id>integration-test</id>
                                <phase>integration-test</phase>
                                <goals>
                                    <goal>integration-test</goal>
                                </goals>
                            </execution>
                            <execution>
                                <id>verify</id>
                                <phase>verify</phase>
                                <goals>
                                    <goal>verify</goal>
                                </goals>
                            </execution>
                        </executions>
                        <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]

Reply via email to