Max*_*iel 6 haskell cabal cabal-new
在旧的阴谋,你可以通过测试选项喜欢--color和--match=name这样做cabal test --test-option=--color --test-option=--match=name。可以做到cabal new-test吗?我--test-option在的帮助输出中没有看到cabal new-test --help。
不,这是不可能的,大概是因为new-test运行所有测试套件,所以不清楚将其传递给哪个测试。
但新版本的cabal帮助中告诉您new-test:
要将命令行参数传递给测试套件,请参阅 new-run 命令。
这就是现在使用选项运行单个测试套件的方法。