Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

coffee-coverage with CucumberJS #79

Open
mjhm opened this issue Aug 17, 2016 · 0 comments
Open

coffee-coverage with CucumberJS #79

mjhm opened this issue Aug 17, 2016 · 0 comments

Comments

@mjhm
Copy link

mjhm commented Aug 17, 2016

FYI. I'm using coffee-coverage with CucumberJS as the test runner. This worked fine for me with a small hack to get around a CucumberJS issue.

./node_modules/.bin/cucumberjs \
  --require node_modules/coffee-coverage/register-istanbul.js \
  --require $path_root/features \
  --compiler coffee:coffee-script/register $*

My application is a Node REST-like API, with the application running in the same process as the test runner. I would imagine that instrumenting code coverage for the more typical Cucumber use case -- feature tests with Selenium browser automation -- would be difficult because the SUT runs in a different process from the runner. However I suppose JSDom could possibly work instead of Selenium for getting code coverage from tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant