Changes
dIon Gillard
Add maven.test.compile.memoryMaximumSize property to enable solving compile OutOfMemory errors with large test sets.
Memory leak and performance degradation in test plugin 1.8.
Document a backward-compat problem affecting version 1.8 of the plugin.
New property to halt a build on test failures but after all tests have been run.
New properties to configure compiler for test classes.
SourceModifications sometimes does not work for test classes.
maven.compile.target is not used in test:compile.
Upgrade to Xerces 2.8.0. Replace the deprecated xmlParserAPIs by xml-apis 1.3.03. Add the xml-resolver dependency for xerces.
Upgrade to Junit 3.8.2.
test:testshould honour the
maven.test.compile.src.setvariable.
Set junit's
showoutputattribute if Maven is executed in debug (-X) mode.
Allow to add additional elements to the test classpath, new property
maven.test.classpath.
Display a warning if some tests do not pass (and
maven.test.failure.ignore=true).
Add timeouts to the test plugin, new property
maven.junit.timeout.
Add ability to fail the build on test errors, new property
maven.test.error.ignore.
Do not execute
test:test-resourcesand
test:compileunless tests will be run.
test:singleshould ignore
maven.test.skip=true.
Test failure doesn't halt execution of test suite.
Update dependencies to match ones in maven 1.1 core and to unify them between plugins.
Add maven.test.excludeXmlApis property to avoid duplicated Xerces
Added maven.junit.forkmode property
Allow multiple patterns in testmatchpattern and testnotmatchpattern
Added testnotmatchpattern that can be used in test:match
Deprecated testmatch property by testmatchpattern to allow more complex patterns in test:match
Deprecate dependency handle
honour source modifications for test compilation
handle JVM args correctly in test:match
only add xml-apis to classpath when forking to avoid classloader issues
add maven.junit.envvars property
add maven.junit.jvm property
accept maven.test.failure.ignore == false
Honour maven.test.failure.ignore for test:single and test:match
Honour maven.test.skip for other test goals, such as compile
Added maven.junit.format property that defaults to brief. Changed formatters to use maven.junit.usefile consistently. Only set 'dir' property of junit task if fork != 'no'
Apply MAVEN-309. Reorganise classpaths so that it's test, build, dependencies and then JUnit
You can now specify whether the source (java) or classes (class) files are searched when using the test plugin via the property: maven.test.search.classdir. It defaults to use (java) to preserve backwards compatibilty. Using (class) allows you to work with alternative languages that compile to bytecode like
Groovy
Check if unitTest tag is present in pom before copy resources.
Add jvmarg support for junit. Add properties documentation.
Fixed classpath for test:ui, test:single and test:match goals.
Added xmlapis and xerces to project dependencies as per MAVEN-106 bug report
The test plugin now works again if the project has not tests defined. The introduction of the <test:test-resources> goal had broken this feature.