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

Add test cases for all mutators #685

Merged
merged 5 commits into from May 4, 2019

Conversation

BackEndTea
Copy link
Member

@BackEndTea BackEndTea commented May 1, 2019

This PR:

  • Adds new tests to make sure mutators can handle more 'exotic' code

All mutators will now be used to parse files in the 'CodeSample' folder. Wheter or not they mutate
this code doesn't matter, the test here is to make sure that this code does not crash the mutator.

One issue found by this test has been fixed, namely the DecrementInteger mutator could crash when 0 was compared to a function with a variable name.

This means we can remove all the 'It does not break on ...' test cases that we now have for every mutator that in some way deals with functions/methods.

@BackEndTea BackEndTea mentioned this pull request May 1, 2019
3 tasks
@maks-rafalko maks-rafalko merged commit f7708db into infection:master May 4, 2019
@maks-rafalko
Copy link
Member

Thank you @BackEndTea

@BackEndTea BackEndTea deleted the enhancement/mutator-test branch May 4, 2019 14:50
@BackEndTea
Copy link
Member Author

Thank you @borNfreee

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.

None yet

2 participants