-
Notifications
You must be signed in to change notification settings - Fork 79
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
Trim console reporter output (#431) #432
Conversation
Thanks @marc136, this looks great! However, I am uneasy about the changes to the json and junit reporter though. I am unsure exactly what stability guarantees we make but I think this change to the json/junit output could break things for people. My thoughts are this:
What do you think? [1]: even better would be to include the |
Hello @harrysarson, for my change, I started from the test reporters and then followed the variables up to the point where I made the changes. Regarding 1 (and [1]):
Regarding 2: Maybe we can create a new issue for that like "Remove the |
Sounds like a good plan! |
Changes: The console reporter prints the arguments passed to elm-test and the `--seed` and `--fuzz` flags. Before, it would list the full path of every single test file found using the passed file selection glob. The JSON reporter returns the additional field "globs".
20d209e
to
557a2eb
Compare
I changed the PR to act as described in my last comment, @harrysarson. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I will let this sit for maybe a week berfore merging incase another folk wish to review but this looks really good to me.
Thanks @marc136! |
Hello, this is my take on reducing the console output to a more manageable amount as discussed in #431
Now it returns a short reproduction command like:
Running 407 tests. To reproduce these results, run: elm-test --fuzz 100 --seed 115440003747078
or
Running 224 tests. To reproduce these results, run: elm-test --fuzz 100 --seed 41574277908519 tests\One.elm tests\Group\*
instead of printing many many lines of absolute file paths.
I changed the data that is passed to all the reporters. I'm confident that it does not break anything for the console reporter, as it only printed the list of files before this commit, and now it prints the list of file globs passed to elm-test.
I'm not sure if it might break something for another tool that works with the output of the json reporter (e.g. if it needs the list of absolute paths of every found test file).
I would really appreciate if this (or a similar change) would make it into this nice tool.