Skip to content

Coverage only runs for last specified test #131

Description

@bramp

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.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions