elm-explorations / test

Write unit and fuzz tests for Elm code.
https://package.elm-lang.org/packages/elm-explorations/test/latest
BSD 3-Clause "New" or "Revised" License
237 stars 39 forks source link

Request: include skipped tests in the test list sent to reporters #179

Open Augustin82 opened 2 years ago

Augustin82 commented 2 years ago

Hi!

In relation to this issue, I would like to have some kind of access to the entire test list, including skipped tests.

Thanks!

mpizenberg commented 2 years ago

In particular, skipped tests are not accessible because the fromTest function generating the seeded runner only uses distribution.all as visible here and do not use distribution.skipped: https://github.com/elm-explorations/test/blob/02134f5df00402618d21d9a3a841f84118ca66ca/src/Test/Runner.elm#L106

In order to be able to report details about skipped tests, we would need somehow to have access to the skipped tests in the output of the fromTest function, or another way to inspect and unwrap the contents of a Test.