Skip to content

Instantly share code, notes, and snippets.

@diegopacheco
Last active January 13, 2022 03:30
Show Gist options
  • Save diegopacheco/f8c16c0159fafd5783247a960ced2861 to your computer and use it in GitHub Desktop.
Save diegopacheco/f8c16c0159fafd5783247a960ced2861 to your computer and use it in GitHub Desktop.
Maven 3, Junit 5, Surefire: Make sure maven get and run the tests in terminal

pom.xml

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

<dependencies>
        <dependency>
            <groupId>org.junit.jupiter</groupId>
            <artifactId>junit-jupiter-api</artifactId>
            <version>5.8.2</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
            <version>1.7.31</version>
        </dependency>
        <dependency>
            <groupId>org.apache.logging.log4j</groupId>
            <artifactId>log4j-api</artifactId>
            <version>2.17.1</version>
        </dependency>
        <dependency>
            <groupId>org.apache.logging.log4j</groupId>
            <artifactId>log4j-slf4j-impl</artifactId>
            <version>2.17.1</version>
        </dependency>
    </dependencies>
</dependencies>    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment