If you were logged in you would be able to see more operations.
|
|
|
QuickBuild
Created: 13/May/15 12:47 PM
Updated: 03/Apr/16 07:17 AM
|
|
Component/s: |
None
|
Affects Version/s: |
6.0.16
|
Fix Version/s: |
None
|
|
Original Estimate:
|
Unknown
|
Remaining Estimate:
|
Unknown
|
Time Spent:
|
Unknown
|
Environment:
|
Windows 2008R2 Server
|
|
In the supplied example project "com.rola.maven.test", there are two test classes "TestOne" and "TestTwo", each with a test case named "testHelloWorld". Both test classes are referenced in the test suite "AllTests".
Structure:
- AllTests
- TestOne
- testHelloWorld
- TestTwo
- testHelloWorld
When built with maven, only the test suite "AllTests.java" in run by the maven-surefire-plugin, resulting in a single XML file "target/surefire-reports/TEST-com.rola.maven.test.AllTests.xml".
In the surefire report created by maven or the JUnit Report created by ANT , the structure is recognized correctly, i.e. one test suite with two test cases, both named "testHelloWorld" from two different test classes, one succeeds, one fails.
In the QuickBuild JUnit Report, there is only one test case "testHelloWorld" displayed in the test suite. QuickBuild seems to ignore the fact, that the two test cases, though named identically, are in different test classes.
I am sending you an e-mail with the sample project and the associated backup QB
|
Description
|
In the supplied example project "com.rola.maven.test", there are two test classes "TestOne" and "TestTwo", each with a test case named "testHelloWorld". Both test classes are referenced in the test suite "AllTests".
Structure:
- AllTests
- TestOne
- testHelloWorld
- TestTwo
- testHelloWorld
When built with maven, only the test suite "AllTests.java" in run by the maven-surefire-plugin, resulting in a single XML file "target/surefire-reports/TEST-com.rola.maven.test.AllTests.xml".
In the surefire report created by maven or the JUnit Report created by ANT , the structure is recognized correctly, i.e. one test suite with two test cases, both named "testHelloWorld" from two different test classes, one succeeds, one fails.
In the QuickBuild JUnit Report, there is only one test case "testHelloWorld" displayed in the test suite. QuickBuild seems to ignore the fact, that the two test cases, though named identically, are in different test classes.
I am sending you an e-mail with the sample project and the associated backup QB
|
Show » |
|
Actually, you needn't use AllTest.java to aggregate the tests, QuickBuild will aggregate the tests automatically. So, just remove the configuration section below:
<execution>
<id>com.rola.maven.test</id>
<phase>integration-test</phase>
<goals>
<goal>test</goal>
</goals>
<!-- Remove this section
<configuration>
<includes>
<include>com/rola/maven/test/AllTests.java</include>
</includes>
</configuration>
-->
</execution>