Consistent way to hide ignored test cases
- Ngôn ngữ chính
- Haskell
- Star
- 529
- Fork
- 201
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
I noticed that there isn't a consistent way regarding how some test cases are ignored, to name a few:
- https://github.com/exercism/haskell/blob/main/exercises/practice/pangram/test/Tests.hs
- https://github.com/exercism/haskell/blob/main/exercises/practice/alphametics/test/Tests.hs
- there are probably more examples but I'm too lazy to get a compete list unless forced to do so
I'm wondering if you are open to the idea of using some hspec facilities like `configSkipPredicate` from [Config]( https://hackage.haskell.org/package/hspec-core-2.7.8/docs/Test-Hspec-Core-Runner.html#t:Config) so those ignored cases can be uncommented but still ignored without explicitly specifying it? (This is of course assumming that all test suites are using or can be adapted to use hspec)
A potential strategy, for example, might be marking ignored tests by prefixing its description with `Ignored: `, and then instruct users to use `stack test --ta="--skip=Ignored:"` and remove `--skip` flag when they are up to the challenge.
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.