Skip to content
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

1.9 support #6

Open
urfolomeus opened this issue Jan 23, 2012 · 5 comments
Open

1.9 support #6

urfolomeus opened this issue Jan 23, 2012 · 5 comments

Comments

@urfolomeus
Copy link

As RCov isn't currently supported by 1.9, it would seem that we have the following options: -

  1. Continue to develop with RCov in 1.8 just now until we prove the concept and then hope that 1.9 support has been added or monkey patch RCov using Bruce Williams' patch

  2. Swap to using SimpleCov or similar just now to make it easier to support 1.9 (although see comment in issue 4 on issues using Coverage)

  3. Another option I haven't thought of yet. :)

@mattwynne
Copy link
Contributor

SimpleCov isn't an option. I looked into it, and all it does is use the built-in Coverage API, which assumes one coverage recording per process. Once you get one set of results from the API, you can't start recording coverage again.

See https://github.com/ghnatiuk/continuous_coverage_test for @ghnatiuk's kind attempt to extend Ruby 1.9's built-in coverage API to work for us.

@mattwynne
Copy link
Contributor

It's also worth noting that, in practice, it seems to be working fine under 1.9 - tests passing etc. I used it on the Relish codebase without any problems, though I can't vouch for the accuracy of the results.

@urfolomeus
Copy link
Author

How did you get the RCov gem installed? Copy a gem set from a 1.8 ruby to a 1.9 one? I was getting an error in both bundler and ruby gems when trying to install directly into a 1.9 ruby.

cheers,

Alan

On Monday, 23 January 2012 at 10:39, Matt Wynne wrote:

It's also worth noting that, in practice, it seems to be working fine under 1.9 - tests passing etc. I used it on the Relish codebase without any problems, though I can't vouch for the accuracy of the results.


Reply to this email directly or view it on GitHub:
#6 (comment)

@mattwynne
Copy link
Contributor

Interesting, I didn't see anything like that. It might be that I tricked it my having the gem in vendor/cache from a 1.8 installation. Try that? You can use bundle install --local to stash things in vendor/cache - works well on trains :)

Obviously not a very good long term solution though if others can't install it. Hmph.

@urfolomeus
Copy link
Author

Ah good thinking :) Thanks will give that a go.

cheers,

Alan

On Monday, 23 January 2012 at 10:44, Matt Wynne wrote:

Interesting, I didn't see anything like that. It might be that I tricked it my having the gem in vendor/cache from a 1.8 installation. Try that? You can use bundle install --local to stash things in vendor/cache - works well on trains :)

Obviously not a very good long term solution though if others can't install it. Hmph.


Reply to this email directly or view it on GitHub:
#6 (comment)

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

No branches or pull requests

2 participants