Skip to content

Commit

Permalink
Refreshed the setting up section in the testing dev doc (jenkins-infr…
Browse files Browse the repository at this point in the history
…a#7649)

* refreshed the setting up section

* Update content/doc/developer/testing/index.adoc

Co-authored-by: Kevin Martens <[email protected]>

---------

Co-authored-by: Kevin Martens <[email protected]>
  • Loading branch information
StefanSpieker and kmartens27 authored Nov 1, 2024
1 parent 28be937 commit aa77f6e
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions content/doc/developer/testing/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -29,23 +29,24 @@ This provides the following features:
5. link:https://htmlunit.sourceforge.io/[HtmlUnit] support, making it simple to test interaction with the web UI and other HTTP calls.

== Setting Up

This section covers what to test when getting started.

=== Dependencies
==== Jenkins Test Harness

By default, you don't need to do anything to set up the https://github.com/jenkinsci/jenkins-test-harness/[Jenkins Test Harness] for your plugin.
All Jenkins plugins inherit from the link:https://github.com/jenkinsci/plugin-pom/[plugin parent POM] and therefore have the test harness dependency included automatically.

Similarly, JUnit is included as a dependency by the parent POM, so you don't need to add it as a dependency.

===== Overriding the Test Harness Version
If you're using version 2.3 or newer of the plugin parent POM, you can change the test harness version used by overriding the `jenkins-test-harness.version` property, if you need newer features.
==== Overriding the Test Harness Version
If you're using the plugin parent POM, you can change the test harness version used by overriding the `jenkins-test-harness.version` property, if you need newer features.
For example:
[source,xml]
----
<project>
<properties>
<jenkins-test-harness.version>2.34</jenkins-test-harness.version>
</properties>
<properties>
<jenkins-test-harness.version>2345.v699712948764</jenkins-test-harness.version>
</properties>
----

==== Working with Pipeline
Expand Down

0 comments on commit aa77f6e

Please sign in to comment.