【发布时间】:2018-10-12 22:46:24
【问题描述】:
在旧的阴谋集团中,您可以通过 cabal test --test-option=--color --test-option=--match=name 来通过 --color 和 --match=name 等测试选项。这可以用cabal new-test 完成吗?我在cabal new-test --help 的帮助输出中没有看到--test-option。
【问题讨论】:
在旧的阴谋集团中,您可以通过 cabal test --test-option=--color --test-option=--match=name 来通过 --color 和 --match=name 等测试选项。这可以用cabal new-test 完成吗?我在cabal new-test --help 的帮助输出中没有看到--test-option。
【问题讨论】:
不,不可能,大概是因为new-test运行了所有的测试套件,所以不清楚要传递给哪个测试。
但是cabal 的新版本在new-test 的帮助中告诉你:
要将命令行参数传递给测试套件,请参阅 new-run 命令。
这就是现在运行带有选项的单个测试套件的方式。
【讨论】: