Proposal: Improve ExUnit output for skipped tests

27 views
Skip to first unread message

Devon Estes

unread,
Jan 12, 2018, 3:04:37 PM1/12/18
to elixir-lang-core
It's already happened to me a couple times this week where I'll have a skipped test somewhere and forget to unskip it because when we have skipped tests in our suites it shows all green in the output. I'm sure I'm not the only one this happens to ;)

I propose that when we have skipped tests in our suite, we get the same kind of output that RSpec uses - a yellow asterisk instead of a green dot for that that test. We could also change the color of the summary line at the end, so instead of it being all green, the section at the end that says "1 skipped" would be yellow. It would be kind of like this:

<green>.......................................................................................</green><yellow>*</yellow><green>......................................................................................................................................................................................................................</green>

<green>103 doctests, 198 tests, 0 failures,</green><yellow> 1 skipped</yellow>

I think this would be a really helpful visual cue for users to let them know there's still something that might deserve their attention.

We could also improve the output of `mix test --trace` by highlighting the skipped tests in yellow, which would be consistent. At the moment they have no highlighting, which is the same as the test module names, while passing tests are highlighted in green.

José Valim

unread,
Jan 12, 2018, 3:09:26 PM1/12/18
to elixir-l...@googlegroups.com
Sounds great to me!



José Valim
Founder and 
Director of R&D

--
You received this message because you are subscribed to the Google Groups "elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-core+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/304cf0f8-8c40-4d7a-a222-314312aaae12%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages