Unit tests getting too slow....

0 views
Skip to first unread message

Jim Hargrave

unread,
Jul 22, 2010, 12:49:00 PM7/22/10
to okapi...@googlegroups.com
Our unit test are really more like functional and integration tests.
I have no problem with this as I'm not a testing purist, but there are
two issues with our current tests and build:

1. print, INFO and DEBUG output. When running unit tests nothing
should appear other than what maven generates. There is too much
clutter. There's no problem with having debug or info logging but
during a build this should (optionally) be turned off. This will also
help with the second problem.. We need to figure out how to configure
this with a logging config file.

2. Speed. Our tests are taking too long. We should limit our true
"unit" tests to a few files only. Anything more than that, say
processing dozens of files, should be done in integration tests. Which
I believe will need to be in a separate module. We could have one
integration module per main type: filters, steps, libraries etc..

In the time it took me to ponder and write this email the build is
still running :-)

Jim

Reply all
Reply to author
Forward
0 new messages