Skip to content

Discard reporter output for tests that succeed. #1360

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

Merged
merged 1 commit into from
Jul 15, 2016

Conversation

nicolasstucki
Copy link
Contributor

No description provided.

if (reporter == null) {
consoleReporter.doReport(d)
} else {
reporter.doReport(d)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not wait until test finished and then if (reporter.hasErrors) reporter.flush?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because I do not have access to the context here.

if (innerStoreReporter == null) {
consoleReporter.report(d)
} else {
innerStoreReporter.report(d)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since last update I changed .doReport(d) with .report(d).

@nicolasstucki nicolasstucki force-pushed the junit-discard-output branch 2 times, most recently from e871021 to abf258e Compare July 6, 2016 08:51
@nicolasstucki
Copy link
Contributor Author

For the validate-junit test, the output reduced from 2,5 MB to 338 KB.

@odersky
Copy link
Contributor

odersky commented Jul 6, 2016

LGTM

@nicolasstucki nicolasstucki force-pushed the junit-discard-output branch from abf258e to 1b4511b Compare July 7, 2016 09:39
@nicolasstucki nicolasstucki changed the title Fix 1336: Discard reporter output for tests that succeed. Fix #1336: Discard reporter output for tests that succeed. Jul 7, 2016
@nicolasstucki
Copy link
Contributor Author

Just changed the commit message

@nicolasstucki nicolasstucki changed the title Fix #1336: Discard reporter output for tests that succeed. Discard reporter output for tests that succeed. Jul 15, 2016
@DarkDimius DarkDimius merged commit 1c02c56 into scala:master Jul 15, 2016
@allanrenucci allanrenucci deleted the junit-discard-output branch December 14, 2017 19:23
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

Successfully merging this pull request may close these issues.

4 participants