mercredi 27 septembre 2017

Run tests with maven surfire plugin after wildfly:deploy execution

How can I run my test with surfire plugin after the remote wildfly deployment.

This is my pom.xml file:

<build>
    <finalName>${project.artifactId}</finalName>
        <pluginManagement>
            <plugins>

                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-compiler-plugin</artifactId>
                    <version>3.7.0</version>
                    <configuration>
                        <source>1.8</source>
                        <target>1.8</target>
                    </configuration>
                </plugin>

                <plugin>
                        <groupId>org.wildfly.plugins</groupId>
                        <artifactId>wildfly-maven-plugin</artifactId>
                        <version>1.0.2.Final</version>
                        <configuration>
                            <hostname>myip</hostname>
                            <port>myport</port>
                            <username>myusername</username>
                            <password>mypassword</password>
                        </configuration>
                </plugin>

            </plugins>
        </pluginManagement>         
</build>

Maybe overriding surfire plugin to run integration test phase?.. how can I do it?

Aucun commentaire:

Enregistrer un commentaire