We want to verify that there are no unit tests for the committed code that fails before allowing the developers to commit.
Do you know any tool that will help us?
We want to verify that there are no unit tests for the committed code
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’d recommend against doing this, because in practice there are times when you want to allow developers to submit code that does not pass all its unit tests. Also, consider that developers might try to work around the restriction by deleting unit tests, or by not writing them in the first place.
And how could the tool determine that all unot tests passed? It would have to build the code and run the unit test-suite. A fault in the build environment or the test-suite might therefore make it impossible to check-in code.