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

Running with COVERAGE=true generates additional tests that fail #114

Closed
safts opened this issue May 11, 2017 · 4 comments
Closed

Running with COVERAGE=true generates additional tests that fail #114

safts opened this issue May 11, 2017 · 4 comments

Comments

@safts
Copy link

safts commented May 11, 2017

When running ember test I see 102 tests, all passing. However, when running tests with COVERAGE=true ember test I see 2 additional tests being run and the first of those fails.
Output:

...
ok 101 PhantomJS 2.1 - ESLint - utils/currencyutils.js: should pass ESLint
ok 102 PhantomJS 2.1 - ESLint - utils/dateutils.js: should pass ESLint
not ok 103 PhantomJS 2.1 - Global error: TypeError: undefined is not an object (evaluating '_qunit['default'].config.current.assert') at http://localhost:7357/assets/test-support.js, line 5299
    ---
        Log: |
            { type: 'error',
              text: 'TypeError: undefined is not an object (evaluating \'_qunit[\'default\'].config.current.assert\') at http://localhost:7357/assets/test-support.js, line 5299\n' }
    ...
not ok 104 PhantomJS 2.1 - ESLint - utils/dateutils.js: global failure
    ---
        actual: >
            null
        expected: >
            null
        stack: >
            http://localhost:7357/assets/test-support.js:5299
        message: >
            TypeError: undefined is not an object (evaluating '_qunit['default'].config.current.assert')
        Log: |
    ...

1..104
# tests 104
# pass  102
# skip  0
# fail  2
Testem finished with non-zero exit code. Tests failed.

The message seems quite cryptic, I could not find why this happens. Could be a misconfiguration on my end, however I don't know how to debug this. Any ideas?

@safts
Copy link
Author

safts commented May 11, 2017

I am using ember-cli@2.12.0 , ember-cli-code-coverage@0.3.12

@safts
Copy link
Author

safts commented May 11, 2017

False positive, issue was on my part. Sorry for the fuss.

@safts safts closed this as completed May 11, 2017
@fkurdi
Copy link

fkurdi commented Jun 1, 2017

@sergafts i have the same issue, not sure what i'm doing wrong.
could you mention what was the problem and how you solved?

@safts
Copy link
Author

safts commented Jun 6, 2017

@superthing001 My issue was totally irrelevant, and quite cryptic. What helped, though, was gradually deactivating tests & running them one by one. In my case it was an asynchronous event that during testing caused issues.

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

2 participants