如何在堆栈中重新运行测试
How to rerun a test in stack
我有一个堆栈项目,其中包含我 运行 和 stack test
的测试。
测试失败,输出显示
...
To rerun use: --match "/foo/must be 4/"
....
但是我应该如何应用它呢?
stack test --match "/foo/must be 4/"
产生 Invalid option `--match`
.
--match "/foo/must be 4/
应该作为参数提供给编译后的可执行程序 运行 测试而不是堆栈。通过 stack test --test-arguments '--match "/foo/must be 4/"'
或 stack test --ta '--match "/foo/must be 4/"'
将其传递给可执行文件
我有一个堆栈项目,其中包含我 运行 和 stack test
的测试。
测试失败,输出显示
...
To rerun use: --match "/foo/must be 4/"
....
但是我应该如何应用它呢?
stack test --match "/foo/must be 4/"
产生 Invalid option `--match`
.
--match "/foo/must be 4/
应该作为参数提供给编译后的可执行程序 运行 测试而不是堆栈。通过 stack test --test-arguments '--match "/foo/must be 4/"'
或 stack test --ta '--match "/foo/must be 4/"'