Jenkins has implemented rigorous testing to make sure that reliability standards are met. Jenkins comes with a test harness which is based on JUnit test framework which provides following features:
Automated setup and teardown of the environment allowing tests to run in a clean environment.
Helper classes and methods
Declarative annotations to specify environment test method will use
Direct access to Jenkins object model
HtmlUnit support allowing to test webUI interaction
All tests must be placed in standard location of maven projects which is src/test/java/
Tests can be run from either the command line by typing ‘mvn test’ or through the use of an IDE.
Common test patterns include:
Configuration Round-Trip Testing where users have to configure project via the web interface
Data used in testing is either from a dummy SCM or from within a pipeline.
There is also Performance testing in Jenkins to make sure that performance requirements such as speed and return time meet the standard.
Jenkins has implemented rigorous testing to make sure that reliability standards are met. Jenkins comes with a test harness which is based on JUnit test framework which provides following features: Automated setup and teardown of the environment allowing tests to run in a clean environment. Helper classes and methods Declarative annotations to specify environment test method will use Direct access to Jenkins object model HtmlUnit support allowing to test webUI interaction
All tests must be placed in standard location of maven projects which is src/test/java/
Tests can be run from either the command line by typing ‘mvn test’ or through the use of an IDE.
Common test patterns include: Configuration Round-Trip Testing where users have to configure project via the web interface Data used in testing is either from a dummy SCM or from within a pipeline.
There is also Performance testing in Jenkins to make sure that performance requirements such as speed and return time meet the standard.