Skip to content

Conversation

@olleolleolle
Copy link
Contributor

@olleolleolle olleolleolle commented Jun 19, 2017

Summary

This PR enables test coverage data in JRuby using the environment variable JRUBY_OPTS=--debug.

Details

Travis output snippet before:

Finished in 8.04 seconds (files took 3.62 seconds to load)
346 examples, 0 failures

Coverage report generated for RSpec to
  /home/travis/build/cucumber/cucumber-ruby-core/coverage.
  0 / 4077 LOC (0.0%) covered.

Travis output snippet after:

Finished in 8.37 seconds (files took 5.94 seconds to load)
346 examples, 0 failures

Coverage report generated for RSpec to
  /home/travis/build/cucumber/cucumber-ruby-core/coverage.
  4048 / 4184 LOC (96.75%) covered.

(Bonus: We also pass travis-lint by adding the language key in the YAML configuration.)

Example coveralls page after this was merged: https://coveralls.io/jobs/26875981

  - Enable the environment variable JRUBY_OPTS to have JRuby produce code coverage data
  - Travis: pass `travis-lint` by adding the `language` key in the YAML configuration
@olleolleolle olleolleolle self-assigned this Jun 19, 2017
@olleolleolle olleolleolle merged commit 0e999fa into cucumber:master Jun 19, 2017
@olleolleolle olleolleolle deleted the fix/jruby-env-variables-in-travis branch June 19, 2017 16:46
@lock
Copy link

lock bot commented Oct 24, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 24, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant