-
Notifications
You must be signed in to change notification settings - Fork 6
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
ReferenceError: Can't find variable _$jscoverage #9
Comments
The plugin runs the tests one by one and saves the report on the last test. Can you ensure that the last test has instrumented code (which will have the |
It seems like the jscoverage.js page in my output directory folder was being included in the tests, and that's not being instrumented. So after i added the output directory folder for the JSCover results to the no-instrument arguments they tests are passing the build is succeeding. So everything seems to be fine now, thanks very much for investigating this. One small additional thing, when loading the jscoverage.html page in my chrome browser there is a slight issue where I don't see all test coverage results, with a error on the page: But after I refresh the page all the results show fine. I know this is unrelated to the original issue but thought I'd mention it. |
Thanks for noting that. What version and OS? |
Sorry for the late response. I'm running Chrome Version 38.0.2125.111 m, on Windows 7. Loading from the network, and I have tried with the --allow-file-access-from-files option. It is happening intermittently on any reports, not specific. |
Does it occur with http://tntim96.github.io/JSCover/example-report-yui3/jscoverage.html? |
Sorry again for the late reply, I was away. It does not occur with the above page. |
What version of JSCover is the report? Also, could you upload a sample that has the issue? I haven't been able to reproduce it. |
The version is 1.0.14. Unfortunately I can't upload any of the reports as I currently don't have access to the build being done before. When I'm able to test again, I will provide an update. |
Dear Admin,
Thanks for providing the JSCover plugin for maven. It seems when building to run the tests fine, but after the tests passed there is a failure during the build process:
"Execution default of goal com.github.tntim96:jscover-server-maven-plugin:1.0.11:jscover failed: Timed out after 1 seconds waiting for text ('%') to be present in element found by By.id: summaryTotal"
Looking up at other messages, it seems to begin from an error saying:
"ReferenceError: Can't find variable _$jscoverage"
I'm not sure whether this is a bug, or a problem with my configuration, which I based off the sample page. Checking the jscoverage.html page that is generated, the code coverage seems to be working regardless. Currently I have it configured as follows:
And for dependencies:
I've searched online but I can't seem to find anything relating to this issue. Thanks very much for your response in advance.
The text was updated successfully, but these errors were encountered: