I forgot to tag the package: *ExUnit.Callbacks* On Sunday, February 12, 2023 at 4:52:37 PM UTC-6 Jose Vargas wrote:
> There is module-level *setup* and module-level *setup_all* > There is describe-level *setup* but there is no describe-level *setup_all* > > I find it would be convenient to have *describe* level *setup_all*. > > Right now the solution to have different *setup_all* for a group of tests > is to break them into different modules. This works fine but sometimes I > want those tests in the same module, perhaps I want them to share some > module-level *setup* or *setup_all*. > > So I propose a *setup_all* inside a* describe* block, same semantics as > module-level but only affects *describe* block. > 1. Runs only once for all the tests inside *describe*, runs in a separate > process. > 2. Receives context the same way as *describe *block *setup*. > 3. Runs before *describe* block *setup*. > > Thoughts? > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/96a18b41-466e-4131-a242-ff71adf9515an%40googlegroups.com.