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
feita há 2 anos256 visualizações
1 Resposta
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 há 2 anos

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas