Ist die Abdeckung Plugin (Cobertura unter der Haube) Bericht über Spock Spezifikationen?
-
10-10-2019 - |
Frage
Mit grails test-app unit:spock -coverage
lief ich den Test erklärt bei
Nun ist die Berichterstattung Bericht "denkt", dass die Methode createCrumb wurde nicht getestet.
Lösung
I actually had a typo in my command. As type I wrote spoc instead of spock, causing no tests to run at all.
grails test-app unit:spoc -coverage
After changing this to the correct values, the tests were actually run and the coverage report contained them.
So: YES, the coverage plugin DOES report on Spock specifications.
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow