Proposal

72 views
Skip to first unread message

Michael Latta

unread,
Feb 21, 2017, 6:19:37 PM2/21/17
to elixir-lang-core
When running 'mix test' from an umbrella app, it runs each child app independently.  When the output form those tests is long or numerous, it can be difficult to know if all tests passed.  It would be nice if the output included a summary at the end listing the total number of passing and failed tests for the whole umbrella.

Myron Marston

unread,
Feb 21, 2017, 11:56:17 PM2/21/17
to elixir-lang-core
This is something I've asked for in the past[1] (albeit for different reason at the time).  While not directly, supported, there's a fairly simple way to add a `mix test_all` task that does what you want. [2]

José said he might be more open to it being built-in in the future, so it's nice to hear that others would like to see this as it has been so helpful in our umbrella app.

TechnoMage

unread,
Feb 22, 2017, 5:04:12 PM2/22/17
to elixir-l...@googlegroups.com
Thanks.  That task works as an alternative.  I was thinking that a summary could be presented at the end, rather than running the test differently, but your task is good in that I still get tests grouped by app, and a total at the end.  Now to get coverage data.  As you indicate, that may still have issues.

Michael


-- 
You received this message because you are subscribed to a topic in the Google Groups "elixir-lang-core" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/elixir-lang-core/96RuXGt6uG0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to elixir-lang-co...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/0dac1eca-2b59-40bd-b7d1-fffdd396193b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages