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
pytest support #17
Comments
Hi @hroncok! Thank you for your interest :) MutPy supports only unittest currently, but pytest support is on our roadmap with very high priority. What would be needed to make it work? We have to rewrite interaction with tests in @phihos do you have any thoughts in this topic? |
Honestly I have no idea how this works. I'll be happy to help with testing. Do you think pytest support should be a first class citizen or pytest-mutpy package / plugin should be created instead? |
I already looked a bit into this: As Konrad mentioned, the code running the tests lives inside the I suggest the following approach:
I already thought about this, too. I am still not sure what approach to take on this matter. Edit: After some thinking I came to the conclusion that separating different test runners into extra packages makes more sense.
Possibility 1 is obvously not optimal since the user has to install unnecessary dependencies. Possibility 2 is not good either, because we would have no control over the test runner versions in use. This makes it harder to deprecate older versions of pytest/nosetest. |
@hroncok you might want to check out mutmut, my mutation tester. It supports all test runners because it only requires a process exit code to communicate with runners. The Python 3 support is limited by the lib I use for mutation though, so there are some limitations there. Mutmut also has some significant upsides over mutpy, the most important being that you can apply mutations in disk to your code and it doesn’t reformat the entire file and throw away comments. Mutmut also has a super tiny and simple code base so it’s easy to modify if you find you need some mutation that is missing. |
I would be happy to see |
@boxed Please refrain from using our issues as advertising platform. You would not want us to pollute your issues either, would you? @sobolevn I currently have more free time and I will continue to work on this feature. In the meantime you can check out the branch externalize-test-runner. In this branch some experimental pytest support already exists. |
Hi all, Thank you very much for this very interesting tool ! @phihos the I though experiment issues that I have not in unittest ; I made up a repo to showcase this. I would like to know the status of this issue, if there are workarounds and if I could be of any help. once again, great job 👍 |
…ommand is handled (based off of discussion in github issue mutpy#17)
Just found out about this from @ana-balica and I love it. However from the README, I'm unsure whether mutpy works with unittest only, or if it also works with pytest. Could you please clarify? Also, what would be needed to make ti work, if it currently doesn't?
The text was updated successfully, but these errors were encountered: