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

Coverage only runs for last specified test #131

Open
bramp opened this issue Apr 1, 2016 · 1 comment
Open

Coverage only runs for last specified test #131

bramp opened this issue Apr 1, 2016 · 1 comment
Labels

Comments

@bramp
Copy link
Contributor

bramp commented Apr 1, 2016

I execute qunit like so:

    $(NODE_MODULES)/qunit \
        --cov \
        --timeout 60000 \
        -d Random:$(BOWER_COMPONENTS)/random/lib/random.js \
        -c Prob:dist/prob-min.js \
        -t tests/*-tests.js

I have two files that match "tests/*-tests.js", "tests/prob-tests.js tests/import-tests.js".

I noticed when I added the 2nd file my tests started to run a lot quicker. I figured out that coverage was not being run on whichever test file was first, and only on the 2nd one. I can observe this due to the speed the test executes as (as coverage slows down the execute of tests/prob-tests.js a lot), in addition the lcov-report clearly seems to only show coverage from the 2nd test.

I noticed this on my https://github.com/bramp/prob.js project.

@kof
Copy link
Contributor

kof commented Apr 1, 2016

any chance you could provide a failing test?

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

No branches or pull requests

3 participants