4
我想用幾個Dist :: Zilla插件來生成和運行作者測試。唯一的問題是它們是由dzil build
生成的,而不是與dzil test
一起運行。作爲一個例子,這裏是我dist.ini一些行:獲取作者測試創建並運行dzil測試
[Test::Compile] ; Create t/00-compile.t
[Test::UnusedVars] ; Create xt/unused-vars.t
[RunExtraTests] ; run the xt/ tests when dzil test is run.
運行dzil test
但是,只有運行創建的測試文件 - 00-compile.t
之一。直到我運行dzil build
才創建了unused-vars.t
。爲了測試所有這樣創建的作者測試,我需要先運行dzil build
,cd進入新目錄,然後運行dzil test
。然後,當某些事情失敗時,我必須使用原始副本,而不是使用build命令創建的副本。沖洗並重復。
有沒有一種方法可以在編譯時生成作者測試,以便我可以在不更改目錄的情況下使用dzil test
運行它們?
確實。我對作者設置爲yes並且發佈默認設置爲no感到困惑。謝謝! –