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
已提问 2 年前256 查看次数
1 回答
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
已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则