Run CodeBuild tests that are NOT marked.

0

I have a CodeBuild build project with a build spec that instantiates tests as follows:

1: pytest --headless --tenant=localhost -n 1 --key=PARITYTEST --junitxml=reports/results_parity.xml

This will only run tests with a test marked with key "PARITYTEST" and works as advertised. I have another build project that is as follows:

2: pytest --headless --tenant=localhost -n 6 --junitxml=reports/results.xml

The issue is option "2:" test suite runs all tests even with the ones that are marked with "PARITYTEST" is there any way to not do this? I have searched through the documentation and have not found a solution.

Thanks,

DR

XDI
asked 2 years ago250 views
1 Answer
0

According to the PyTest documentation here: https://docs.pytest.org/en/7.1.x/example/markers.html you can choose both select a key or exclude it, based on markers, metadata or test names.

profile picture
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions