when i run multiple JUnit tests in a row, does JUnit create a new thread for each execution or everything is wrapped in a single thread?
Thanks
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.
It’s all on a single thread. You don’t say how you’re invoking the tests, but for example, running a TestSuite will run all the tests in the suite sequentially.
If you want parallel execution, TestNG has support for running tests concurrently, as does JUnitPerf and GroboUtils.