Skip to content
Snippets Groups Projects

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 :dark_sunglasses:

What are the relevant issue numbers?

#19412 (moved)

Screenshots

coverage

coverage-javascript

coverage-graphs

coverage-utils

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
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:

    • 0d64fd5f - temporarily disable ruby tests
  • Added 1 commit:

    • e8256199 - temporarily disable ruby tests
  • Added 1 commit:

    • 8bb8adc4 - temporarily disable ruby tests
  • Added 1 commit:

    • a1f02575 - Add test coverage analysis for CoffeeScript (!5052 (merged))
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading