Jenkins is an automation tool designed for Continuous Integration (CI) and Continuous Deployment (CD). It allows automatic execution of build, testing, and deployment processes whenever code changes are made in the repository.
To configure the project locally, follow these steps:
-
Run Jenkins locally
- Install and start Jenkins on your machine.
- Ensure all required plugins are installed.
-
Configure the settings file
- Copy
local.properties.TEMPLATE. - Rename it to
local.properties(removeTEMPLATE). - Fill in the necessary values with your local configuration.
- Copy
After completing these steps, your project should be ready to use! 🚀
To run automated tests locally, use the following commands:
-
Run all tests:
mvn test
-
Run specific tests:
mvn test -Dtest=TestName
-
Run a specific test suite:
mvn clean test -Dsurefire.suiteXmlFiles=suite/<suite-name>Replace with the actual suite file name.
-
Run tests in a Docker Container:
- Using Dockerfile
- Build the Docker image:
docker build -t img-fall-2024 .-t img-fall-2024– assigns a name to the image..(dot) – specifies that the image is built from the current directory. - Run the container:
docker run --rm --name my-container img-fall-2024--rm– removes the container after execution.--name my-container– assigns a name to the container.img-fall-2024– specifies the image to use for the container.
- Build the Docker image:
- Using Docker Compose
- Start the container:
docker-compose up-d– runs the containers in the background. - Stop and remove the container:
docker-compose downThis method automatically handles image mounting and container execution. 🚀
- Start the container:
- Using Dockerfile
Example of the Allure Report
After the build is completed, a bot created in Telegram automatically processes the results and sends a message with the test run report to a specially configured chat.

