If the junit or Regression tests run on Jenkins, after each tests class deleted all variable on heap (befor it starts new test class)? or are deleted at the end?
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.
JUnit keeps a reference to each test as long as it runs. That means you get one (1) instance of your test case class per test method and these instances live until JUnit prints the test results.
If you run out of memory, you need to set the fields of the test instance to
nullin an@Aftermethod.