我有一堆測驗模塊,我可以使用 cabal 測驗運行一個特定的模塊。
cabal test Module.Name.Here
該模塊包含許多測驗,其中一個失敗,并給出以下訊息。
To rerun use: --match "/Module.Name.Here/hspecDescribeString/hspecPropName/"
如何使用這個匹配字串?我嘗試了各種組合,但它們都不起作用??。我也看過cabal test --help它沒有提到--match任何地方的標志。
cabal test Module.Name.Here --match rest-of-the-match-string
cabal test Module.Name.Here -- --match rest-of-the-match-string
cabal test match-string
cabal test -- match-string
任何幫助深表感謝。
uj5u.com熱心網友回復:
像這樣運行它:
cabal test —test-options=—match=/Module.Name.Here/hspecDescribeString/hspecPropName/
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/473821.html
