October 25, 2024
Chicago 12, Melborne City, USA
java

Cucumber and Springboot tests to mvn test


Im triying to set my cucumber test in mvn test, but I cant.
You can check the repository in https://github.com/marcotenorioNTT/automation-api-framework

I did use this plugin:

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>3.0.0-M5</version>
            </plugin>

But it only works with JUnit test, not with cucumber and features. I tried too with:

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-surefire-plugin</artifactId>
    <version>3.5.1</version>
    <configuration>
        <includes>
            <include>**/*Test.java</include>
            <include>**/*Tests.java</include>
            <include>**/Cucumber*.java</include>
        </includes>
    </configuration>
</plugin>

Bur it doesnt work neither.

I would appreciate your help!

Im expecting to set my cucumber test with the maven test in order to make a prehook that checks the test.



You need to sign in to view this answers

Leave feedback about this

  • Quality
  • Price
  • Service

PROS

+
Add Field

CONS

+
Add Field
Choose Image
Choose Video