Hi all,

over the weekend I was playing around with our code-base and I noticed one 
thing … If I only run the unit-tests, because I thought running all tests just 
takes too long, it still takes very long to build (Actually not really 
noticeable).
Turns out we have only very few integration-tests and many many unit-tests. 
(I’m not talking about the integration-tests module).

I think it would be good to rename some of the tests from “*Test.java” to 
“IT.java”, as this could allow quicker local builds with tests, as usually 
unit-tests should only run in seconds and not in minutes.

I think currently many people are simply disabling the run of the tests and 
relying on the CI/CD. This is a pattern I have seen being problematic more 
times than I can count them.

Perhaps having a look at the execution time of the tests and having a look at 
the long-running ones … usually a Unit-Test should only test one direct part of 
the software, if multiple parts are involved, that’s usually an indicator for 
putting them in the Integration Tests block.

What do you think?

Chris

Reply via email to