exercism / exercism/haskell

Consistent way to hide ignored test cases

未关闭
#955 5 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
enhancement
主要语言
Haskell
星标
529
派生
201
PR 合并指标
30 天内没有已合并 PR

描述

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.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。