Add JavaScript coverage analysis
What does this MR do?
- configure teaspoon to calculate test coverage of JavaScript files
- publish result as GitLab pages (thanks @ayufan for the idea)
Are there points in the code the reviewer needs to double check?
- the
.gitlab-ci.yml
Why was this MR needed?
- test coverage was not calculated for JavaScript files
- JavaScript wants to be under cover
What are the relevant issue numbers?
Screenshots
Merge request reports
Activity
Added 60 commits:
- b94c72e1...b2273559 - 58 commits from branch
gitlab-org:master
- b3fb3a30 - Add test coverage analysis for CoffeeScript
- c43628c0 - add istanbul to CI config
- b94c72e1...b2273559 - 58 commits from branch
mentioned in issue #19412 (moved)
Added 1 commit:
- 2c8a5715 - Add test coverage analysis for CoffeeScript (!5052 (merged))
Added 1 commit:
- 79f61dbd - Add test coverage analysis for CoffeeScript (!5052 (merged))
158 158 # Which coverage reports Istanbul should generate. Correlates directly to what Istanbul supports. 159 159 # 160 160 # Available: text-summary, text, html, lcov, lcovonly, cobertura, teamcity 161 # coverage.reports = ["text-summary", "html"] 161 coverage.reports = ["text-summary", "html"] 162 162 163 163 # The path that the coverage should be written to - when there's an artifact to write to disk. 164 164 # Note: Relative to `config.root`. 165 # coverage.output_path = "coverage" 165 coverage.output_path = "coverage-teaspoon" 166 166 167 167 # Assets to be ignored when generating coverage reports. Accepts an array of filenames or regular expressions. The 168 168 # default excludes assets from vendor, gems and support libraries. 169 # coverage.ignore = [%r{/lib/ruby/gems/}, %r{/vendor/assets/}, %r{/support/}, %r{/(.+)_helper.}] 169 coverage.ignore = [%r{vendor/}, %r{spec/}] 158 158 # Which coverage reports Istanbul should generate. Correlates directly to what Istanbul supports. 159 159 # 160 160 # Available: text-summary, text, html, lcov, lcovonly, cobertura, teamcity 161 # coverage.reports = ["text-summary", "html"] 161 coverage.reports = ["text-summary", "html"] Added 1 commit:
- b45d6a62 - Add test coverage analysis for CoffeeScript (!5052 (merged))
Added 1 commit:
- 6e9a852d - Add test coverage analysis for CoffeeScript (!5052 (merged))
Added 1 commit:
- a1f02575 - Add test coverage analysis for CoffeeScript (!5052 (merged))
Please register or sign in to reply