On Tue, 30 Nov 2021 at 16:47, Christopher Keele <christheke...@gmail.com> wrote:
> > use ExUnit.Case, independent: [:db_case1, :db_case2] > > mix test --exclude db_case1:true --exclude db_case2:true mix test -- > include db_case1:true mix test --include db_case2:true > Thanks for weighing in on the mechanism :) If I understand your approach here, I think all the test files in the `db_case1` group will be run simultaneously and separately from the bulk of the tests, which is unfortunately the reverse of the effect I'm looking for. What I'd like to achieve is for each test file in `db_case1` to run async at the same time as the bulk of the tests, but only one file at a time that is tagged `db_case1`. So in the example above, it's "async" with respect to all test files _except_ other test files in the `db_case1` and `db_case2` groups. It is effectively "async: false" with respect only to other files in those groups. I can't see an easy way to handle that directly with tag inclusion / exclusion, but I imagine some of the internal tagging mechanism could be helpful in implementation? Paul -- 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/CALZj-VpN34VC6vEBurxkDwMX4ogE_CWRZPcLo7NxP26y3jU6%2Bw%40mail.gmail.com.