!!DON'T USE THIS, good practices are all you need.
but the reality is impure
This library is for those annoying tests, full of dust and that no one wants to look at because they are scary.
defmodule MyTest do
use ExUnit.Case
use ExUnitBrittle
@tag brittle_attemps: 10
@tag brittle_timeout: 100
test_brittle "brittle test" do
....
end
end
If available in Hex, the package can be installed
by adding ex_unit_brittle to your list of dependencies in mix.exs:
def deps do
[
{:ex_unit_brittle, "~> 0.1.0"}
]
endDocumentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/ex_unit_brittle.