Manage test execution with skip, only, and todo
masterDuring development, you can control which tests are executed using three functions. Note that using these results in an incomplete test run, which CI systems typically report as a failure to prevent accidentally committing a gutted test suite.
only: Marks a suite so that only the tests within that block are run. Other tests in the suite are ignored.skip: Skips a specific test, even if it is inside anonlyblock.todo: Marks a test as a placeholder for future implementation.
wipSuite : Test
wipSuite =
describe "skip, only, and todo"
[ only <|
describe "Marking this test as `only` means no other tests will be run!"
[ test "This test will be run" <|
\_ -> 1 + 1 |> Expect.equal 2
, skip <| test "This test will be skipped, even though it's in an `only`!" <|
\_ -> 2 + 3 |> Expect.equal 4
]
, test "This test will be skipped because it has no `only`" <|
\_ -> "left" |> Expect.equal "right"
, todo "Make sure all splines are reticulated"
]