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

Dramatically decrease unit test output noise when running from CLI #7207

Closed
wants to merge 2 commits into from

Conversation

mramato
Copy link
Contributor

@mramato mramato commented Oct 30, 2018

  1. When running the unit tests from the command line, do not output karma server info or browser console output. Now the only output are the tests themselves (and whether they pass/failed). If you suppress passed tests, only test failures are printed.

  2. Add a --verbose flag that goes back to the old behavior that can be used for debugging specific failing tests. You need to use the verbose flag in order to see any console.log messages you add in your unit tests.

  3. Travis logs are not much shorter and way less noisy. Tracking down unit test failures should now be trivial.

I'm also okay with keeping verbose output as the default, and adding a --quiet flag for travis, but I think most of us would rather see less noise in general. Anyone hand any thoughts?

@bagnell you were just asking for this the other day I believe.

1. When running the unit tests from the command line, do not output karma
server info or browser console output. Now the only output are the tests
themselves (and whether they pass/failed)

2. Add a `--verbose` flag that goes back to the old behavior that can
be used for debugging specific failing tests. You need to use the verbose
flag in order to see any console.log messages you add in your unit
tests.

3. Travis logs are not much shorter and way less noisy.  Tracking down
unit test failures should now be trivial.
@mramato mramato requested a review from ggetz October 30, 2018 18:47
@cesium-concierge
Copy link

Thanks for the pull request @mramato!

  • ✔️ Signed CLA found.
  • CHANGES.md was not updated.
    • If this change updates the public API in any way, please add a bullet point to CHANGES.md.

Reviewers, don't forget to make sure that:

  • Cesium Viewer works.
  • Works in 2D/CV.
  • Works (or fails gracefully) in IE11.

I am a bot who helps you make Cesium awesome! Contributions to my configuration are welcome.

🌍 🌎 🌏

@mramato
Copy link
Contributor Author

mramato commented Oct 30, 2018

The fact that this passed all tests the first time makes me wonder if the amount of console logging we were doing previously was contributing to our random CI failure rate? Doubtful, but I'll believe anything at this point.

@mramato
Copy link
Contributor Author

mramato commented Nov 1, 2018

I merged in master just to be sure, but this is ready.

I'm going to do a follow up PR that gets rid of travis folding so that 1. No more clicking to see output and 2. The error will hopefully be on screen without even scrolling.

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.

2 participants