Skip to content

Pytest

The Pytest framework makes it easy to write small tests, yet scales to support complex functional testing for applications and libraries. We support the JUnit formatter from Pytest see Generating a result file.

Learn by example

Check out our example Pytest repository.

Installation

Download and install Pytest https://docs.pytest.org/en/6.2.x/getting-started.html

Generating a result file

You can add the --junitxml=path to the pytest command, it will generate a JUnit .xml file. There are also a lot of options you can set in the config file, see https://docs.pytest.org/en/6.2.x/usage.html#creating-junitxml-format-files for more information.

Importing your result to calliope

At this point, you have a file to upload. You can either upload it manually or set up an API call to our API endpoint.