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.
This commit is contained in:
Rafael Guterres Jeffman
2022-08-26 01:48:15 -03:00
parent 401d5d5acc
commit b3ee4f9bed
3 changed files with 5 additions and 7 deletions

View File

@@ -1,6 +1,6 @@
-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

View File

@@ -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:

View File

@@ -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: