You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
We are trying to generate code coverage using Chutzpah 4.4.13. We are getting an error
Error: SyntaxError: Unexpected token (6:7)
**
While Running:**
This error seems to have been generated due to a change in the repository where ecma version was set to 5, in blanket_qunit.js.
Our code has been developed using ecma version 6. Hence, due to this mismatch, we are getting the aforementioned error.
Can anyone suggest a way to override the ecma version from chutzpah.json?
Coverage does not work on anything but phantom.js and there are no plans to fix that since the library coverage is built on is deprecated so it would require a total rewrite.
You might try khutzpa (warning: I'm the author). We're working on it now to use with some legacy AngularJS and KnockoutJS code. It's designed to be a drop-in replacement for Chutzpah on the command line and in VS Code, and coverage does seem to be doing fairly well now. I got to spend some "real" time (so not just free time) on it last month and we're in the process of releasing it to internal teams (ie, other than the team that worked on it; aka "teams other than my team") next sprint.
We're just trying to get our usage back up and running, so a number of settings aren't supported yet, but you're, eg, using "RootReferencePathMode": "SettingsFileDirectory",, so I think you might do okay with our "any color you want as long as it's the one we already picked for you" approach. Or maybe just use khutzpa for coverage if everything else is happy.
But do open an issue if it isn't working or you need another setting supported!
Hi,
We are trying to generate code coverage using Chutzpah 4.4.13. We are getting an error
Error: SyntaxError: Unexpected token (6:7)
**
While Running:**
This error seems to have been generated due to a change in the repository where ecma version was set to 5, in blanket_qunit.js.
Our code has been developed using ecma version 6. Hence, due to this mismatch, we are getting the aforementioned error.
Can anyone suggest a way to override the ecma version from chutzpah.json?
Our chutzpah.json is as follows :
{
"Framework": "qunit",
"RootReferencePathMode": "SettingsFileDirectory",
"EnableCodeCoverage ": "true",
"CodeCoverageExcludes": [ "jquery.js", "-test.js", ".html" ],
"CodeCoverageExecutionMode": "Always",
"IgnoreResourceLoadingErrors": false,
"Parallelism": 1
}
The text was updated successfully, but these errors were encountered: