Proposal: Show failed tests at the end of `mix test` output

42 views
Skip to first unread message

Shadab Ahmed

unread,
Apr 11, 2018, 1:37:46 PM4/11/18
to elixir-lang-core
Right now, the failed tests show up in the middle of the output of `mix tests`. To only run that test you've to scroll all the way to the test to copy the command. A more convenient way would be if the failed tests and the command to run them is printed at the end like rspec:



rspec spec
/models                                                                                                                                              
....................F.............


Failures:


 
1) Organization#scoped_role_assignments when assigning role assignments should only update scoped role assignments
     
Failure/Error: expect(org.scoped_role_assignments.collect(&:role_uid)).to eq %w[role10 role2 role3]

<<<more output>>>

Failed examples:


rspec
./spec/models/organization_spec.rb:37 # Organization#scoped_role_assignments when assigning role assignments should only update scoped role assignments

I'm sure others would find it useful too.

José Valim

unread,
Apr 11, 2018, 1:41:56 PM4/11/18
to elixir-l...@googlegroups.com
We show them as they run so you don't need to wait for the whole suit to finish to see the reports. However, if you prefer different approaches, you can use ExUnit custom formatter features to develop and plug your own.



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/407e7a46-6550-4a6f-bcce-38acd210e160%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages