![](/img/trans.png)
[英]How to test with hspec whether the readerError function was executed
[英]Hspec: How to suppress successful test results
反正是否阻止成功的測試被打印到屏幕上? 目前我有很多測試,輸入很長,我只關心看到失敗?
編輯:我正在使用 stack test
運行我的 stack test
解:
感謝@ mb14的回答,我能夠搜索到我想要的東西。
直接運行您的測試文件:
您可以使用:
runhaskell testfile.hs --format=failed-examples
要么
runhaskell testfile.hs -f failed-examples
並通過stack test
運行:
stack test --test-arguments=--format=failed-examples
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.