I've got my Java source files split up in directories as follows:
My TestCases are mostly unit tests, however some TestCases are integration tests (these usually access the database), or a combination of unit and integration tests.
- java (contains application code)
- test (contains unit and integration tests and package structure mirrors the application code tree)
I feel a need for a strategy to separate my unit and integration tests from each other, so for example, I can easily run all my unit tests without running the (lengthy) integration tests.
Have any forum members got any suggestions for how to do this? What's worked for you in the past?
In case it makes a difference, I'm using Maven as my build tool.