Strategies for separating unit and integration tests, using Maven, Eclipse / IDEA, cobertura

July 22, 2009

What I have

  • Maven2
  • Eclipse/IntelliJ IDEA
  • Fast tests (unit tests)
  • Slow tests (integration tests)
  • Test coverage maven plugin (Cobertura)

I wish to

  • run my fast tests (unit tests) from my IDE
  • run my slow test (integration tests) from my IDE and maven
  • run them all before committing code.
  • create test coverage reports combining unit and integration tests
  • create test coverage reports from unit tests only

Read the rest of this entry »