Credo.Check.Refactor.PassAsyncInTestCases (Credo v1.7.16)
View SourceBasics
This check is disabled by default.
Learn how to enable it via .credo.exs.
This check has a base priority of normal and works with any version of Elixir.
Explanation
Test modules marked async: true are run concurrently, speeding up the
test suite and improving productivity. This should always be done when
possible.
Leaving off the async: option silently defaults to false, which may make
a test suite slower for no real reason.
Test modules which cannot be run concurrently should be explicitly marked
async: false, ideally with a comment explaining why.
Check-Specific Parameters
Use the following parameters to configure this check:
:force_comment_on_explicit_false
Force adding a comment when async: false is used.
This parameter defaults to false.
General Parameters
Like with all checks, general params can be applied.
Parameters can be configured via the .credo.exs config file.