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
isparta instrumenter is not working with karma-coverage v0.5.0 #175
Comments
@martinmicunda I think you mean |
@onlywei yeah I meant |
@dignifiedquire @douglasduteil is there any update on this issue? Thanks |
+1 |
@dignifiedquire @douglasduteil @martinmicunda I was hoping to get this working as well, any chance of another temporary fork, or a known workaround? Thanks |
@jashatton I wrote a blog how to get run unit test with coverage.. Check it here |
@martinmicunda It is a great article, thank you for writing it. It mirrors our set up and what brought me to this issue. Did you ever get ES6 code to display in the coverage reports? |
@jashatton yeah it mentioned in the article.. You can see ES6 coverage report here |
Well, after a couple hours of reading and inferring into documentation and Stack Overflow anwsers, I figured out how to get branch versions of npm modules installed. But, I have it working now. Thanks again for the article it was the catalyst for me to learn more about npm and have readable coverage reports. |
@jashatton what modules did you switch to branches? |
Is there an update here? |
Wow, sorry I missed the notifications. I am currently using what is below in my package.json devDependencies {
"babel-core": "5.8.21",
"gulp": "3.9.0",
"gulp-jshint": "1.11.2",
"gulp-sass": "2.0.2",
"isparta": "3.5.0",
"istanbul": "git+http://github.com/gotwarlost/istanbul/#source-map",
"jasmine-core": "2.3.4",
"jshint-stylish": "2.0.1",
"jspm": "0.15.7",
"karma": "0.13.9",
"karma-babel-preprocessor": "5.2.2",
"karma-chrome-launcher": "0.2.0",
"karma-coverage": "git+https://github.com/douglasduteil/karma-coverage.git#next",
"karma-jasmine": "0.3.6",
"karma-jspm": "2.0.1-beta.1",
"karma-junit-reporter": "0.3.8",
"karma-ng-html2js-preprocessor": "0.2.0",
"karma-phantomjs-launcher": "0.2.1",
"karma-sourcemap-loader": "0.3.6",
"phantomjs": "1.9.18",
"shelljs": "0.5.1",
"vinyl-source-stream": "1.1.0"
} @jsg2021 I am referencing Github npm modules for karma-coverage and istanbul to get coverage reports that have usable sourcemaps. If anyone could use more information certainly let me know, I will try to keep an eye out for notifications. |
Still don't work on v0.5.3 |
@blittle You can check my package.json and karma.conf.js And this is an example of my coverage results. You can see it shows ES6 code |
@RomanGotsiy Thanks! |
+1 Be great if this could be fixed. Seems that the douglasteil branch cant use the coverage check option so either way I have to lose some functionality that I want :-( I'm assuming this is a problem with karma-coverage and not isparta? |
+1 |
I try get run
isparta
instrumenter with karma-coverage v0.5.0 but coverage code is still ES5 and not ES6 and my understanding is that we should not use karma-coverage fork from @douglasduteil as it mentioned in this comment by @dignifiedquire. Has anybody tryisparta
withkarma-coverage
v0.5.0? ThanksThe text was updated successfully, but these errors were encountered: