Acceptance tests cases for Jenkins and its plug-ins based on selenium and docker.
Switch branches/tags
acceptance-test-harness-1.62 acceptance-test-harness-1.61 acceptance-test-harness-1.60 acceptance-test-harness-1.59 acceptance-test-harness-1.58 acceptance-test-harness-1.57 acceptance-test-harness-1.56 acceptance-test-harness-1.55 acceptance-test-harness-1.54 acceptance-test-harness-1.53 acceptance-test-harness-1.52 acceptance-test-harness-1.51 acceptance-test-harness-1.50 acceptance-test-harness-1.49 acceptance-test-harness-1.48 acceptance-test-harness-1.47 acceptance-test-harness-1.46 acceptance-test-harness-1.45 acceptance-test-harness-1.44 acceptance-test-harness-1.43 acceptance-test-harness-1.42 acceptance-test-harness-1.41 acceptance-test-harness-1.40 acceptance-test-harness-1.39 acceptance-test-harness-1.38 acceptance-test-harness-1.37 acceptance-test-harness-1.36 acceptance-test-harness-1.35 acceptance-test-harness-1.34 acceptance-test-harness-1.33 acceptance-test-harness-1.32 acceptance-test-harness-1.31 acceptance-test-harness-1.30 acceptance-test-harness-1.29 acceptance-test-harness-1.28 acceptance-test-harness-1.27 acceptance-test-harness-1.26 acceptance-test-harness-1.25 acceptance-test-harness-1.24 acceptance-test-harness-1.23 acceptance-test-harness-1.22 acceptance-test-harness-1.21 acceptance-test-harness-1.20 acceptance-test-harness-1.19 acceptance-test-harness-1.18 acceptance-test-harness-1.18-r3 acceptance-test-harness-1.18-r2 acceptance-test-harness-1.17 acceptance-test-harness-1.16 acceptance-test-harness-1.15 acceptance-test-harness-1.14 acceptance-test-harness-1.13 acceptance-test-harness-1.12 acceptance-test-harness-1.11 acceptance-test-harness-1.10 acceptance-test-harness-1.9 acceptance-test-harness-1.8 acceptance-test-harness-1.7 acceptance-test-harness-1.6 acceptance-test-harness-1.5 acceptance-test-harness-1.4 acceptance-test-harness-1.3 acceptance-test-harness-1.2 acceptance-test-harness-1.1 acceptance-test-harness-1.0
Nothing to show
Clone or download
lvotypko Merge pull request #453 from lvotypko/scanner-task
File command is missing, use another way how to select wanted files.
Latest commit 3618c0c Sep 13, 2018

README.md

Acceptance tests for Jenkins

End to end test suite for Jenkins automation server and its plugins.

The scenarios are described ain form of tests controlling Jenkins under test (JUT) through UI / REST API. Clean instance is started for individual tests to isolate the tests. The harness provides convenient docker support so integration tests can be written easily.

Getting Started

The simplest way to start the harness is calling BROWSER=firefox JENKINS_VERSION=2.73 mvn test. Complete test suite takes hours to run due to the number of covered components/use-cases, the cost of Jenkins setup and selenium interactions. That can be avoided by selecting a subset of tests to be run - smoke tests for instance.

Further Reading

Running tests

The harness provides a variety of ways to configure the execution including:

Writing tests

Given how long it takes for the suite to run, test authors are advised to focus on the most popular plugins and use-cases to maximize the value of the test suite. Tests that can or already are written as a part of core/plugin tests should be avoided here as well as tests unlikely to catch future regressions (reproducers for individual bugs, boundary condition testing, etc.). Individual maintainers are expected to update their tests reflecting core/plugin changes as well as ensuring the tests does not produce false positives. Tests identified to violate this guideline might be removed without author's notice for the sake of suite reliability.

Areas where acceptance-tests-harness is more suitable then jenkins-test-harness are:

  • Installing plugins for cross-plugin integration
  • Running tests in realistic classloader environment
  • Verifying UI behaviour in actual web browser