Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.4
-
None
Description
The attached Maven project has two tests: one JUnit test and one TestNG test. According to the documentation, in this case TestNG should run both tests.
Run "mvn test". Only the TestNG test will run. If you modify the pom to set the property "junit=true", only the JUnit test will run.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.4-SNAPSHOT</version>
<configuration>
<properties>
<property>
<name>junit</name>
<value>true</value>
</property>
</properties>
</plugin>
Attachments
Attachments
Issue Links
- is duplicated by
-
SUREFIRE-532 JUnit and TestNG clash with each other
- Closed
-
SUREFIRE-579 Maven Surefire Plugin don't run JUnit tests if TestNG in dependencies
- Closed