2006-06-09 10:30:57 -04:00
|
|
|
Notes:
|
|
|
|
- today, 3 sets of integration tests, categorized by their ids (it0xxx, it1xxx, it2xxx).
|
|
|
|
see below for what these groups represent
|
|
|
|
- creating a new test:
|
|
|
|
- you can add mojos to the integration-tests plugins/maven-core-it-plugin
|
|
|
|
- add log.txt and target to your it test svn ignore list
|
|
|
|
|
2006-06-19 20:50:03 -04:00
|
|
|
|
|
|
|
Format of tests:
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
Any Maven project plus the following optional files
|
|
|
|
|
|
|
|
- goals.txt goals to run
|
|
|
|
|
|
|
|
- expected-results.txt path of files expected after build, use "!" as first char to mark it as not expected
|
|
|
|
|
|
|
|
Examples:
|
|
|
|
target/maven-core-it0003-1.0.jar
|
|
|
|
${artifact:org.apache.maven:maven-core-it0003:1.0:jar}
|
|
|
|
!target/maven-core-it0016-1.0/WEB-INF/lib/servletapi-2.4-20040521.jar
|
|
|
|
target/maven-core-it0057-1.0.jar!/it0001.properties
|
|
|
|
|
|
|
|
This means that
|
|
|
|
we expect target/maven-core-it0003-1.0.jar
|
|
|
|
we expect an artifact in the local repo under org.apache.maven groupId, maven-core-it0003 artifactId, 1.0 version and type jar
|
|
|
|
we don't expect target/maven-core-it0016-1.0/WEB-INF/lib/servletapi-2.4-20040521.jar
|
|
|
|
we don't expect it0001.properties inside target/maven-core-it0057-1.0.jar
|
|
|
|
|
|
|
|
|
|
|
|
- prebuild-hook.txt comands to run before the invocation of mvn
|
|
|
|
|
|
|
|
Examples:
|
|
|
|
rm ${artifact:org.apache.maven.plugins:maven-core-it-plugin:1.0:maven-plugin}
|
|
|
|
rmdir ${basedir}/test project
|
|
|
|
|
|
|
|
- cli-options.txt options used in mvn command line
|
|
|
|
|
2004-05-21 13:25:02 -04:00
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
- generated sources
|
|
|
|
- generated resources from sources
|
|
|
|
- generated resources from generated sources
|
|
|
|
- build that requires a plugin download
|
|
|
|
- transitive dependencies
|
2004-05-25 08:49:13 -04:00
|
|
|
- goal attainment not requiring depedency resolution
|
|
|
|
- goal attainment where a POM is not required: this is a case where
|
|
|
|
we are using mgen to create new applications and project structures
|
|
|
|
which is used by the m2 geronimo plugin and tools like the "setup"
|
|
|
|
goal which brings a project to life from scratch using something like:
|
|
|
|
m2 --setup xstream --version 1.0
|
2004-05-21 13:25:02 -04:00
|
|
|
|
|
|
|
- write a small program to generate a massively nested build
|
|
|
|
which which use the reactor and inheritence. we need to have
|
|
|
|
integration tests that go far beyond what the average user
|
|
|
|
would ever setup.
|
2004-06-18 07:53:26 -04:00
|
|
|
|
2004-06-20 16:44:38 -04:00
|
|
|
- project with a cyclic dependency
|
|
|
|
|
2004-06-18 07:53:26 -04:00
|
|
|
-------------------------------------------------------------------------------
|
2004-06-18 07:59:01 -04:00
|
|
|
These are a set of builds that contain known errors. The errors should be
|
|
|
|
captured and reported in a useful manner to the user. We will start at it1000
|
|
|
|
for intentially flawed builds.
|
2004-06-18 07:53:26 -04:00
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
it1000: A build which contains a malformed pom.xml. We have intentionally
|
|
|
|
created a mismatch in the first element. We have:
|
|
|
|
<projectX>...</project>
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
it1001: A build whose pom.xml does not contain a <groupId/> element.
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
it1002: A build with a syntax error in the first field declaration.
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
it1003: A build with a simple test failure.
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
- checksum mismatch
|
2005-05-05 20:37:27 -04:00
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
it1005: A build with two mojo java sources that declare the same goal.
|
|
|
|
-------------------------------------------------------------------------------
|
2005-06-20 23:57:17 -04:00
|
|
|
it1006: Tests collision on default execution id. Should throw an
|
|
|
|
IllegalStateException, since the model is incorrect.
|
|
|
|
-------------------------------------------------------------------------------
|
2005-07-18 07:59:46 -04:00
|
|
|
it1007: Should fail due to requiring a future version of Maven.
|
|
|
|
-------------------------------------------------------------------------------
|
2005-07-20 02:53:47 -04:00
|
|
|
it1008: Should fail due to requiring a version range for junit that doesn't exist
|
|
|
|
in the repository. Currently succeeds (MNG-614)
|
|
|
|
-------------------------------------------------------------------------------
|
2005-07-26 05:04:32 -04:00
|
|
|
it1009: Tests packaging from a plugin fails when extensions is not true.
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
it1010: Tests a type from a plugin fails when extensions is not true.
|
|
|
|
-------------------------------------------------------------------------------
|
2005-08-04 17:14:51 -04:00
|
|
|
it1011: Tests the fail-at-end reactor behavior. First module fails, and second
|
|
|
|
should also run but not fail. End result should be failure of the build.
|
|
|
|
-------------------------------------------------------------------------------
|
2005-08-11 23:04:06 -04:00
|
|
|
it1012: Test that the DefaultLifecycleExecutor will throw an exception when
|
|
|
|
encountering an unknown packaging.
|
2005-09-26 16:29:20 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
it1015: Test that expressions that self-reference within the POM result in an
|
|
|
|
error during POM interpolation.
|
2005-08-11 23:04:06 -04:00
|
|
|
-------------------------------------------------------------------------------
|
2005-06-20 23:57:17 -04:00
|
|
|
|
2005-10-05 15:52:30 -04:00
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
it1018: Test formatting of error caused by invalid profiles.xml syntax.
|
|
|
|
-------------------------------------------------------------------------------
|
2006-02-21 00:48:51 -05:00
|
|
|
it1019: A test that ensures that an exception is thrown when two artifacts
|
|
|
|
with the same id are present in the reactor.
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
|
2005-10-05 15:52:30 -04:00
|
|
|
|
2005-08-09 12:11:40 -04:00
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
These are a set of builds that are more complex than single-project or reactor
|
|
|
|
invocations. They follow a process external to maven itself, invoking
|
|
|
|
different lifecycle phases and/or goals on multiple projects within each test
|
|
|
|
directory in order to accomplish their aims.
|
|
|
|
|
2005-09-13 23:40:17 -04:00
|
|
|
NOTE: Currently, there is no automatic verification process for these...
|
2005-08-09 12:11:40 -04:00
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
it2000: Test resolution of plugin by prefix from the first plugin repository
|
|
|
|
in a list. This is accomplished by creating a local "remote" repo, and
|
|
|
|
deploying a plugin there. Then, in another project, that plugin's goal
|
|
|
|
is invoked directly with the plugin's groupId being included in the
|
|
|
|
pluginGroups for the build. This second build should pickup the
|
|
|
|
plugins.xml for the aforementioned plugin from the first repository
|
|
|
|
and execute. This should resolve MNG-592.
|
2005-09-13 23:40:17 -04:00
|
|
|
|
|
|
|
it2001: Test that repositories are accumulated as the artifact resolution
|
|
|
|
process traverses successive layers of transitive dependencies, such
|
|
|
|
that transitive dependencies can be resolved from repositories defined
|
|
|
|
in the top-level pom.xml. See MNG-757.
|
|
|
|
|
2005-09-28 16:14:35 -04:00
|
|
|
|
|
|
|
it2002: Test the release plugin.
|
|
|
|
|
2005-11-14 18:04:56 -05:00
|
|
|
it2003: Test that versions specified in pluginManagement are used when plugins
|
|
|
|
are resolved as direct command-line goals, or as implied lifecycle
|
|
|
|
bindings.
|
|
|
|
|
2005-08-09 12:11:40 -04:00
|
|
|
-------------------------------------------------------------------------------
|
2005-09-13 23:40:17 -04:00
|
|
|
|