2017-03-16 65 views
1

我使用SerenityBDD + Cucumber創建了PoC,我發現使用場景大綱的簡單示例生成的報告不顯示正確的場景大綱文本和gradle任務由於生成的測試文件名稱長度而失敗。SerenityBDD:錯誤場景大綱報告文本和測試文件名長度問題

對於文件名長度,我已將serenity.compress.filenames設置爲true,但無效。

示例項目代碼可以在這裏找到:

https://github.com/ehdez73/web-testing/blob/serenity-bdd/serenity-bdd/doc/build-stacktrace.txt#L125 
https://github.com/ehdez73/web-testing/blob/serenity-bdd/serenity-bdd/doc/scenario-outline-report-with-errors.png 

回答

0

這看起來像:

https://github.com/ehdez73/web-testing/tree/serenity-bdd/serenity-bdd

堆棧跟蹤並與錯誤報告截圖講話稱可以在docs文件夾下找到JUnit報告Gradle生成報告,而非Serenity報告。

關於場景大綱,Serenity盡其所能恢復變量,但Cucumber實際上只提供有關變量的很少信息,所以Serenity有時會錯誤。如果被空格包圍的變量可能會更好。