-
Notifications
You must be signed in to change notification settings - Fork 338
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
Should simplecov work with chefspec? #19
Comments
Hi Jay, I haven't done this but agree that it would be awesome. You'll need to configure simplecov with additional filters for standard recipe directories. If you get a working configure block let's ship it as an adapter so others can use it. |
Sounds good. I'll keep you posted. Thanks! |
Any update on this? |
I think we should close this ticket. Most of the current coverage tools (e.g simplecov) uses the coverage stdlib. Which provides information on which files are read (which lines, etc). But the way chef works , it reads the entire recipe and evals it. Unless chef require's the file , coverage data for a recipe wont be generated, and i dont think thats gonna happen, |
Hi @ranjib, I just wanted to revisit and see if anything has changed in Chef to possibly allow a code coverage tool to work. Thanks, |
@jperry this would need to change in Chef. I would open a ticket thete |
(tickets.opscode.com) |
thanks! |
@jperry something like this is now present |
I am seeing an issue where even though I have tests for library helper simplecov coverage does not recognize it. Coverage on recipe specs looks good though. It looks like similar issue. |
Configuring and using simplecov with tests that use chefspec don't seem to show up as being executed. Is this supported?
The text was updated successfully, but these errors were encountered: