Integrations Test
Integrations test is internal procedural check component or functional based on an analysis of product. White box testing will do in this step. Whether your project include with unit testing, you can add to integrated test on gitlab ci. This will automate to test your functional code before release on staging. Some note, it still ready support for python project such as microservice project.
Adding test for pre-served Makefile
Add this line below to your Makefile.
.PHONY: test
test:
sudo apk add libxml2-dev libxslt-dev
sudo pip3 install -r requirements.txt
sudo pip3 install -r requirements-dev.txt
pytest -vv -s <project_test_folder>
<project_test_folder>
with your unit testing folder.
Example Project Contain Unit Testing
Here explain a python project ready support execute integrated tools on ci/cd.
figure 1 : example a unit testing
figure 2 : Makefile file
Output can be viewed as terminal linux(tty) on browser when pipeline test started.
figure 3 : automated test running on ci/cd