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
preguntada hace 2 años256 visualizaciones
1 Respuesta
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
respondido hace 2 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas