Skip to content
Snippets Groups Projects
Commit b3ee4f9b authored by Rafael Guterres Jeffman's avatar Rafael Guterres Jeffman
Browse files

tests: Drop pytest-split-tests in favor of pytest-split

The plugin pytest-split-tests is used to split the tests in several
groups so that the tests can be executed in parallel is upstream CI.

The issue is thet pytest-split-tests last release was more that a
year ago, upstream developers have not been responsive, and there is
a bug when the number of tests to be executed by a group is zero.
The patch to fix this issue has been open for a year.

This patch deprecates the use of pytest-split-tests, changing the
plugin used to split the tests to pytest-split, which is actively
mainatined.
parent 401d5d5a
Branches
Tags
No related merge requests found
-r requirements.txt -r requirements.txt
pytest>=2.7 pytest>=2.7
pytest-sourceorder>=0.5 pytest-sourceorder>=0.5
pytest-split-tests>=1.0.3 pytest-split>=0.8.0
pytest-testinfra>=5.0 pytest-testinfra>=5.0
pyyaml>=3 pyyaml>=3
...@@ -60,9 +60,8 @@ jobs: ...@@ -60,9 +60,8 @@ jobs:
-m "playbook" \ -m "playbook" \
--verbose \ --verbose \
--color=yes \ --color=yes \
--test-group-count=${{ parameters.number_of_groups }} \ --splits=${{ parameters.number_of_groups }} \
--test-group=${{ parameters.group_number }} \ --group=${{ parameters.group_number }} \
--test-group-random-seed=97943259814 \
--junit-xml=TEST-results-group-${{ parameters.group_number }}.xml --junit-xml=TEST-results-group-${{ parameters.group_number }}.xml
displayName: Run playbook tests displayName: Run playbook tests
env: env:
......
...@@ -61,9 +61,8 @@ jobs: ...@@ -61,9 +61,8 @@ jobs:
-m "playbook" \ -m "playbook" \
--verbose \ --verbose \
--color=yes \ --color=yes \
--test-group-count=${{ parameters.number_of_groups }} \ --splits=${{ parameters.number_of_groups }} \
--test-group=${{ parameters.group_number }} \ --group=${{ parameters.group_number }} \
--test-group-random-seed=97943259814 \
--junit-xml=TEST-results-group-${{ parameters.group_number }}.xml --junit-xml=TEST-results-group-${{ parameters.group_number }}.xml
displayName: Run playbook tests displayName: Run playbook tests
env: env:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment