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

Simplecov support #9

Open
priverop opened this issue Aug 8, 2023 · 2 comments
Open

Simplecov support #9

priverop opened this issue Aug 8, 2023 · 2 comments

Comments

@priverop
Copy link

priverop commented Aug 8, 2023

Hello! I've been using this Gem for a while and it works like a charm, good job!

However, I'm trying to use the SimpleCov gem to get the Coverage of the project but it doesn't work correctly:

image

It looks like it's only getting the results of one of the workers.

Apparently SimpleCov checks for some ENV vars to see if parallel_test (I assume it's the gem) is being used:
image

If maybe we could add something similar here we could make it compatible. With help I could do the PR.

Has anybody experienced something similar? What do you use to get the test coverage of your project with this tool?

Thanks!

@willbryant
Copy link
Owner

Yes, that's a known issue. Last time I looked (years ago) there was no parallelism support in SimpleCov, so it's great that they have something now. We could set those vars and see what happens? From a quick skim of the code it looks like maybe SimpleCov is trying to drive the parallelism though? eg. it loads parallel_tests in make_parallel_tests_available.

@priverop
Copy link
Author

priverop commented Aug 9, 2023

Thank you for answering so quickly!!

You are right, apparently they require parallel_tests if you have these environment vars... I didn't see that before, maybe it's not as easy as I thought.

I'll create an issue to see their opinion on this.

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