Próbuję dostać Stambuł do pracy.Zakres kodu Istanbul dla testów Mokka
Wciąż dostaję ten komunikat na końcu uruchomiony Istanbul:
No coverage information was collected, exit without writing coverage information
Próbowałem wszystko udało mi się znaleźć w Internecie, jak widać:
"scripts": {
"start": "node ./bin/start.js",
"test": "mocha test --no-timeouts",
"debug_mocha": "node-debug --no-timeouts _mocha",
"eslint": "eslint .",
"jshint": "jshint --exclude ./node_modules .",
"istanbul": "istanbul cover --include-all-sources --hook-run-in-context node_modules/.bin/_mocha -- -u exports -R spec test/**/*",
"istanbul2":"istanbul cover node_modules/.bin/_mocha -- -u exports -R spec test/**/*",
"istanbul1":"istanbul cover node_modules/.bin/_mocha -- test/**/*",
"istanbul0":"istanbul cover _mocha test/**/*.js",
"istanbul3":"istanbul cover _mocha -- -R spec --recursive test"
}
mój .istanbul.yml plik jest u podstaw projektu i wygląda na to, że Stambuł z powodzeniem go zbiera.
//.istanbul.yml
instrumentation:
compact: false
save-baseline: true
reporting:
reports:
- lcov
- cobertura
Czego mi brakuje?
Czy możesz udostępnić testowany kod i użyć specyfikacji, aby je przetestować? – JME
Witam JME..strasznie co masz na myśli specyfikacji używanych do ich testowania? –
Specs = testy ;-) – JME