[
https://jira.codehaus.org/browse/SUREFIRE-377?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=349578#comment-349578
]
Kay McCormick commented on SUREFIRE-377:
----------------------------------------
I don't understand how this issue is fixed, since I haven't seen or read any
indication that JUnit and TestNG tests can be run as part of a single project
build. If there is a solution to this I would enjoy hearing it.
> When JUnit and TestNG tests are in same project, only one set gets run
> ----------------------------------------------------------------------
>
> Key: SUREFIRE-377
> URL: https://jira.codehaus.org/browse/SUREFIRE-377
> Project: Maven Surefire
> Issue Type: Bug
> Components: TestNG support
> Affects Versions: 2.4
> Reporter: Dan Fabulich
> Fix For: 2.4
>
> Attachments: surefire377.patch, testng-junit-together.zip
>
>
> 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>
--
This message was sent by Atlassian JIRA
(v6.1.6#6162)