Jenkins Kata 3: Automated Testing
Explore how to implement automated testing within Jenkins to enhance continuous integration processes. This lesson guides you through adding tests to Jenkins jobs, running builds that validate application behavior, and ensuring quality by catching errors early with failure notifications. You will practice making tests fail and fixing errors to understand Jenkins' role in maintaining reliable software delivery.
We'll cover the following...
We'll cover the following...
Test automation is a critically important function of CI.
Many of the common failures encountered during software development can be prevented through automated testing. Automated tests can, for example:
- Validate the output of isolated system components
- Inspect code for common security vulnerabilities
- Test the runtime behavior of an application
This kata will demonstrate how to add a simple test to a Jenkins job.
Step 1: Add a build step to run the test
The following are the steps to add a build to run the test:
- Click “Configure.”
- Click the “Build Steps” tab.