Skip to content

Remove dead code preventing simplecov from running #1598

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

Merged
merged 3 commits into from
Mar 19, 2016

Conversation

bf4
Copy link
Member

@bf4 bf4 commented Mar 17, 2016

'test/support/simplecov' was removed but not its require, so
coverage wasn't running.

@groyoh
Copy link
Member

groyoh commented Mar 17, 2016

Missing in .travis.yml:

env:
  global:
    - "JRUBY_OPTS='--dev -J-Xmx1024M -Xcli.debug=true --debug'"

Fun fact, you provided the fix: simplecov-ruby/simplecov@057360d 😄

@bf4
Copy link
Member Author

bf4 commented Mar 17, 2016

@groyoh yeah :)

@@ -24,7 +24,7 @@ script:

env:
global:
- "JRUBY_OPTS='--dev -J-Xmx1024M'"
- "JRUBY_OPTS='--dev -J-Xmx1024M' -d"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tried it out locally and seems like you need --debug instead.

It seems that for coverage to work properly the "--debug" option is
needed when using JRuby.
groyoh pushed a commit that referenced this pull request Mar 19, 2016
Remove dead code preventing simplecov from running
@groyoh groyoh merged commit 61412d8 into rails-api:master Mar 19, 2016
@bf4 bf4 deleted the fix_simplecov branch August 31, 2016 06:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants