Categories
Automated testing Pytest Python

How to use pytest fixture with arguments

Pytest fixtures are a very handy tool. Thanks to them, we avoid having to repeat the same code. Also, pytest allows you to control for which tests a fixture should be run. There is no problem as long as you want the fixture to always give you the same result. But what if each test…

Categories
Automated testing Pytest Python

Build test suite with pytest

Pytest is a framework for running tests written in Python. It is easy to customize the launch of the tests. Let’s see what Pytest has to make it possible. possibility to create you own fixtures built-in fixtures tests parametrization for running same tests with different test data third-party plugins allow you to extend your tests…

Categories
Automated testing Pytest

Run pytest tests with report publication on GitLab

Configure GitLab CI to run automated tests written on python using pytest framework and to publish allure test results to GitLab pages