Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在旧的 cabal 中,您可以通过像--color和--match=name这样的测试选项做cabal test --test-option=--color --test-option=--match=name. 这可以做到cabal new-test吗?--test-option我在帮助输出中没有看到cabal new-test --help.
--color
--match=name
cabal test --test-option=--color --test-option=--match=name
cabal new-test
--test-option
cabal new-test --help
不,这是不可能的,大概是因为new-test运行了所有测试套件,所以不清楚将它传递给哪个测试。
new-test
但是新版本cabal在帮助中告诉你new-test:
cabal
要将命令行参数传递给测试套件,请参阅 new-run 命令。
所以现在这是运行带有选项的单个测试套件的方法。