воскресенье, 27 мая 2012 г.

Junit and java 7.

Recently our project was moving from java 6 to java 7, and we have got many kinds of problems due to this process.
One of this problem was - tests execution order in junit 4.

In general, the execution order of tests should not be determinated.
Each test should be run independently from the others.
You can read it from junit documentation. But when you having thousands of tests and they fails when running in random order - this is a very big problem and you will spend a lot of time on refactoring all tests, make them independent. I would like to share with you my temporary solution of this problem.

About this blog.

Hello.

This is my blog were I would share my java solutions.

There is also russian version of my blog here:
www.intellijavarus.blogspot.com