Frage

Mit grails test-app unit:spock -coverage lief ich den Test erklärt bei

" Warum ist diese Methode Rückkehr null, obwohl die zugrundeliegende Steuerung verspottet wird mit Spocks' Mock ()? "

Nun ist die Berichterstattung Bericht "denkt", dass die Methode createCrumb wurde nicht getestet.

War es hilfreich?

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
scroll top