After a junit test case ran, should delete test data related with this test case?
Will keeping the test data help the developers to debug the code?
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.
As a good practice the test case must remove its test data after it is finished so that next test case can run with a known initial db state.
The test cases should not depend upon the order of run.
This also makes debugging a test case easy since it runs from a known initial state.