Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aggregate test reports for JUnit and TestNG in spring-test [SPR-11509] #16134

1 task done
spring-projects-issues opened this issue Mar 4, 2014 · 1 comment
1 task done
type: task


Copy link

@spring-projects-issues spring-projects-issues commented Mar 4, 2014

Sam Brannen opened SPR-11509 and commented

Status Quo

The current Gradle build configuration for the spring-test module declares two separate test tasks: test for JUnit and testNG for TestNG. Since the test task depends on the testNG task, the test report generation for JUnit tests currently overwrites the test report for TestNG tests. As a consequence, the results of TestNG tests never show up in the generated HTML test report.


  1. Configure the Gradle build so that JUnit and TestNG reports are aggregated.

Affects: 4.0 GA

Referenced from: commits fa44224

Copy link
Collaborator Author

@spring-projects-issues spring-projects-issues commented Mar 4, 2014

Sam Brannen commented

Completed as described in the comments for GitHub commit fa44224:

Aggregate JUnit and TestNG test reports

Prior to this commit, the test results for JUnit tests overwrote the
results for TestNG tests in the HTML test report generated by the
Gradle build.

This commit addresses this problem by introducing a new
'aggregateTestReports' task in the spring-test module and making the
'check' task depend on it.

To see aggregated reports in the spring-test module, execute either
gradle build or gradle check. Executing gradle test alone will
not trigger test report aggregation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
type: task
None yet

No branches or pull requests

2 participants