Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
361 views
in Technique[技术] by (71.8m points)

unit testing - Karma coverage report on minified file?

I'm trying to run the unit tests from the zeppelin-web project using their karma.conf.js, webpack.config.js, etc configurations.

The only change I've made is to add 'coverage' to the preprocessors. The tests seem to run fine and all succeed but the report shows only 1 line of code tested per folder. That's obviously incorrect. When drilling down into the report I can see that it appears to me that the report is testing a minified version of the file?

coverage for app.controller.js

What am I doing wrong here? Is there another setting I need to add? I've never encountered jasmine reports looking like this.

question from:https://stackoverflow.com/questions/66056621/karma-coverage-report-on-minified-file

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...