exercism / exercism/haskell

Consistent way to hide ignored test cases

Đang mở
#955 5 bình luận 0 reaction 0 người được giao Xem trên GitHub
enhancement
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á.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.