Skip to content

Shouldn't maven-surefire-plugin be maven-failsafe-plugin #32

Open
@agoncal

Description

When we create an Arquillian test with the Forge addon, each profile ends up using the maven-surefire-plugin :

    <profile>
      <id>arquillian-jbossas-remote-7</id>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-surefire-plugin</artifactId>
            <version>2.14.1</version>
            <configuration>
              <systemPropertyVariables>
                <arquillian.launch>arquillian-jbossas-remote-7</arquillian.launch>
              </systemPropertyVariables>
            </configuration>
          </plugin>
        </plugins>
      </build>
      <dependencies>
        <dependency>
          <groupId>org.jboss.as</groupId>
          <artifactId>jboss-as-arquillian-container-remote</artifactId>
          <version>7.2.0.Final</version>
          <scope>test</scope>
        </dependency>
      </dependencies>
    </profile>

Shouldn't it be using the maven-failsafe-plugin ? It's the same old story between unit test and integration test but the Maven phase is different : mvn test with surefire and mvn integration-test with failsafe.

I usually use Arquillian with failsafe so I have my unit tests in one side, and my integration tests in another one (integration test classes finish with IT, example BookServiceIT). Also remember that maybe one day, Forge will have an junit-create-test command. It would be good to have junit-create-test and arquillian-create-test doing things separate (unit test vs integration tests).

What do you think ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions