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
gefragt vor 2 Jahren256 Aufrufe
1 Antwort
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
beantwortet vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen