> > The point I need it is in a certain test, long after the suite has > started. The work around I talked about in `test_helper.exs` was just a > way to ensure it was set. > > Also, is there a reason `seed` couldn't be generated and assigned after > processing CLI args (at which point ExUnit should be able to know it needs > to set the seed)? >
Not necessarily because you can configure ExUnit and run it multiple times, in any order. That's how umbrella applications run tests for example. Although there is nothing stopping Mix setting the seed instead of waiting for the runner to set it. But then it wouldn't be different than what you are doing right now, it would just be done by Mix. -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/CAGnRm4%2B11TzJGiEYEgCJ9FTNUYomEyxbZf%3Dszz5vTxtuLZnDNQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
