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

Test report aggregation #1

Closed
MartinAhrer opened this issue Dec 5, 2013 · 4 comments
Closed

Test report aggregation #1

MartinAhrer opened this issue Dec 5, 2013 · 4 comments
Assignees

Comments

@MartinAhrer
Copy link

The HTML files for both the unit and the integration test are generated into the tests folder but the index file is only linking into the unit tests

@bmuschko
Copy link
Owner

bmuschko commented Dec 5, 2013

For which listing is this happening?

@MartinAhrer
Copy link
Author

Sorry I had assumed the issue would be linked with the currently viewed source item:
listing_07_17-18-integration-test-separated

@bmuschko
Copy link
Owner

bmuschko commented Dec 5, 2013

Thanks, I am going to look at this soon.

@ghost ghost assigned bmuschko Dec 5, 2013
@bmuschko
Copy link
Owner

bmuschko commented Dec 5, 2013

You are correct. This example doesn't really spell out all possible configurations as they have been discussed in earlier examples of chapter 7. You will either have to configure the tasks test and integrationTest to write their reports into different output directories. That would mean that both tests types do not have combined reporting. However, you can easily aggregate them with another task as shown in listing_07_06-test-report-aggregation. To create an aggregated reports for this listing, you'd have to add this task:

task aggregateTestReports(type: TestReport) {
    destinationDir = test.reports.html.destination
    reportOn test, integrationTest
}

@bmuschko bmuschko closed this as completed Dec 5, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants