You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I really like to use Test.only when doing test-driven development, and I relatively often end up with nested Test.only (one on a describe and another one on a test inside it.
When this happens, the Test.only on the individual test is ignored, and the only one that is taken into account is the one on the describe, which is quite annoying.
SSCCE
moduleAexposing (tests)
importExpectimportTestexposing (..)
tests:Testtests =
describe "All tests"[Test.only <|
describe "Only tests"[Test.only <| test "is correctly run"<|\()->Expect.equal 11, test "is run but SHOULDN'T"<|\()->Expect.equal 12], test "is correctly skipped"<|\()->Expect.equal 12]
This runs tests "is correctly run" and "is run but SHOULDN'T", though I would expect it only run the former test.
The text was updated successfully, but these errors were encountered:
I really like to use
Test.only
when doing test-driven development, and I relatively often end up with nestedTest.only
(one on adescribe
and another one on a test inside it.When this happens, the
Test.only
on the individual test is ignored, and the only one that is taken into account is the one on thedescribe
, which is quite annoying.SSCCE
This runs tests "is correctly run" and "is run but SHOULDN'T", though I would expect it only run the former test.
The text was updated successfully, but these errors were encountered: