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

Mutant does not "see" all example groups #279

Closed
plexus opened this issue Dec 18, 2014 · 1 comment
Closed

Mutant does not "see" all example groups #279

plexus opened this issue Dec 18, 2014 · 1 comment
Labels

Comments

@plexus
Copy link
Contributor

plexus commented Dec 18, 2014

In the case of typecheck all tests should run for each mutation, i.e. the only scoping done in test group descriptions is the top level module. There's also heavy use of shared example groups.

Test code: https://github.com/plexus/typecheck/blob/master/spec/integration/typecheck_spec.rb#L75-L110

Some mutants are live that should have been killed by these shared example groups, e.g. this one https://gist.github.com/plexus/7db6e2d44176610a5e7e . It seems mutant is not "seeing" the tests in the shared example groups.

This is the output of rspec -fd : https://gist.github.com/f118f7b2583bc23b1386

To see this in action

git clone git@github.com:plexus/typecheck.git 
cd typecheck
bundle
MUTANT_OPTS=--fail-fast bundle exec rake mutant
@mbj
Copy link
Owner

mbj commented Dec 18, 2014

@plexus Thx for the dense repro. Will look into this as soon as I have time for an OSS cycle!

@mbj mbj added the bug label Dec 18, 2014
@mbj mbj closed this as completed in ae65509 Dec 21, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants