Re: [elixir-core:11259] [Proposal] setup_all block inside describe block

2023-02-12 Thread 'eksperimental' via elixir-lang-core
Hi Jose Vargas, You can use tags as described in the `ExUnit.Callbacks` module docs: Finally, as discussed in the ExUnit.Case documentation, remember that the initial context metadata can also be set via @tags, which can then be accessed in the setup block: defmodule ExampleTagModificationTest

Re: [elixir-core:11258] [Proposal] setup_all block inside describe block

2023-02-12 Thread 'eksperimental' via elixir-lang-core
On Sun, 12 Feb 2023 14:52:37 -0800 (PST) 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

[elixir-core:11257] [Proposal] setup_all block inside describe block

2023-02-12 Thread Jose Vargas
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