maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Jackman" <>
Subject Running integration tests
Date Fri, 13 May 2005 16:31:59 GMT
For one of my projects, I need to add some integration tests that are
separate from the unit tests.  The unit tests work as they should--they
are fully automated and run with every build.  The integration tests are
different in that they can't be fully automated since they depend on
some external resources (in this case a specifically configured server)
being available.  However, when these resources are in place I would
like to be able to use Maven to run the tests.  I didn't see a plugin
that directly addresses this situation, but did notice the
"integrationUnitTestSourceDirectory" element of the POM that has been
documented as deprecated.  Is anyone out there doing this sort of thing?
Is there a best practice I can follow for the fewest headaches?
Here was my planned approach:
1. Create an "integrationtest" directory tree in src that is a sibling
to the unit tests in "test".  The integrationtest directory will have a
java subdir for the source code, a resources directory for non-compiled
files that need to be in the classpath, and a data directory that
contains the files and instructions necessary for setting up the
external resources.
2. Create "integrationtest:xxx" goals in the project's maven.xml that
correspond to the test plugin goals the set the test plugin properties
to point to the integrationtest directory then run the corresponding
test goal.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message