Defines test harness for Jenkins core and plugins that you can use during the mvn test
phase.
See wiki page
- Upgrade to Jetty 9.4Upgrade to Jetty 9.4
- JENKINS-41631: removing the Maven Embedder dependency from the harness.
- JENKINS-44453:
JenkinsRule
should ensure that Jenkins reaches theCOMPLETED
milestone.
- Make
FakeChangeLogSCM
supportRun
rather than justAbstractBuild
.
- Fixed a regression in 2.20 affecting especially
InjectedTest
on Jenkins 2.x.
- “Detached” plugins in Jenkins 2.x are no longer loaded implicitly during tests. You should declare
test
-scoped dependencies on plugins you expect to use during your tests, in the desired versions.TestPluginManager.installResourcePlugin
has been removed, andinstallDetachedPlugin
added for unusual cases. - Avoid using methods deleted in newer version of HtmlUnit.
waitForMessage
can fail immediately if the build is completed.- Possible to override
JenkinsRule.createWebServer
more easily. - Deprecating
CLICommandInvoker.authorizedTo
in favor of a simplerasUser
. - Make Jetty be quiet during functional tests.
- Pick up
jetty-io
andjetty-util
from our specified version to avoid conflicts.
- Introduced
allowSoft
parameter toassertGC
. - Avoid any fixed timeout on
waitUntilNoActivity
.
- Fixed
JenkinsComputerConnectorTester
soComputerConnector
s can be tested throughJenkinsRule.configRoundTrip
. - Improved
MemoryAssert.assertGC
: now catches more root references, and can run with the environment variableASSERT_GC_VERBOSE=true
to track downSoftReference
leaks. - Better report
java.lang.IllegalArgumentException: URI is not hierarchical
; generally this is a symptom of a plugin missing a rootindex.jelly
.
JenkinsRule.getLog
fixed to make fewer assumptions about the implementation ofRun.getLogText
.
Not recorded.