Post
20 Dec 2020

Smart integration tests

When you start automating testing for a new project, everything is very simple. When you have several years and hundreds of tests to launch, things get complicated.

It is important to have a good organization of the tests, a good prioritization of them and, when possible, use some technique that allows to intelligently select which tests best cover the changes made in the product code.

This presentation explains the changes introduced to speed up the tests of a project.

The main contribution has been to introduce a new Jenkins pipeline to validate a Pull Request before merging it. This pipeline runs the acceptance tests, so the tests better cover end-to-end usage. Also it includes the build process using Open Build Service, where only the packages changed by the Pull Request are built, speeding up this process. In addition, you can manually select the functional areas that you want to test. The next steps toward that goal are to filter the resources to deploy through Terraform depending on the functional areas to be tested and to integrate this with the GitHub repository.


Tags:
0 comments