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)?

On Fri, May 6, 2016 at 10:40 AM, José Valim <[email protected]
> wrote:

> Why does the fact that it needs to be generated *per run* mean it cannot
>> be exposed?  It's exposed internally to whatever part of ExUnit orders the
>> tests, so why can't it be exposed publicly?
>>
>
> Because it is generated only when the suite starts and, in your code, the
> suite has not started running yet.
>
> --
> 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/gDHHiAfYzDc/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elixir-lang-core/CAGnRm4%2Btm3q8rB4LWJmySyF6BAOUS8d6KM84ziNyo2KB1rT51A%40mail.gmail.com
> <https://groups.google.com/d/msgid/elixir-lang-core/CAGnRm4%2Btm3q8rB4LWJmySyF6BAOUS8d6KM84ziNyo2KB1rT51A%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CADUxQmsJoJ_TSC2t7k51iLjQrOWfGyykfJ_j0yY64M28OgUypw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to