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 5 commits into from May 4, 2019


Copy link

@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 force-pushed the enhancement/mutator-test branch from 7783311 to ff62bc9 Compare May 1, 2019
@BackEndTea BackEndTea mentioned this pull request May 1, 2019
3 tasks
@maks-rafalko maks-rafalko merged commit f7708db into infection:master May 4, 2019
5 checks passed
Copy link

maks-rafalko commented May 4, 2019

Thank you @BackEndTea

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

BackEndTea commented May 4, 2019

Thank you @borNfreee

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

Successfully merging this pull request may close these issues.

None yet

2 participants