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

code run in gt.async and gt.exec is ignored by the code coverage #45

Open
tilmanschweitzer opened this issue Mar 30, 2015 · 0 comments
Open

Comments

@tilmanschweitzer
Copy link

I wrote a new test for https://github.com/bahmutov/deps-ok but the coverage in the e2e coverage report didn't change.

gt.async 'test version', ->
  gt.exec 'node', ['index.js', '--version'], 0, (stdout) ->
    console.assert(stdout == 'deps-ok 0.8.0\n', 'expected "deps-ok 0.8.0" but was "' + stdout + '"')

Steps to reproduce the behavior:

  1. add the test to test/e2e.coffee
  2. start npm run e2e
  3. check the report for index.js at test/cover/lcov-report/deps-ok/index.js.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant