pytest-ordering
pytest-ordering copied to clipboard
pytest plugin to run your tests in a specific order
This is the result of the test suite on our (Arch Linux) building system: ``` ============================= test session starts ============================== platform linux -- Python 3.8.1, pytest-5.3.5, py-1.8.1, pluggy-0.13.1 rootdir: /build/python-pytest-ordering/src/pytest-ordering-0.6...
See https://github.com/pytest-dev/pytest/issues/8282
Use case: - creaet a test file "test_example1.py" - Mark order from 1 to 5 for different test_methods - Now create another test file "test_example2.py" - Mark order from 1...
When I use the following code to mark a whole test file to be run last: ```python pytestmark = pytest.mark.last ``` I always get the following warning at the end...
If I mark a test first within a class, it should be possible to have that test run first in that class, not first overall (unless that class is the...
Reading the documentation I noticed that there are a lot of potential marker names including run(), and even custom markers proposed in #10. It seems like this has the potential...
python 3.7.1 pytest 4.4.0 pytest-ordering 0.6 there are two testClass, and I find the test will run as order which I set. ``` import unittest import pytest class TestA(unittest.TestCase): @pytest.mark.run(order=0)...
```python import pytest def test_a(): pass @pytest.mark.dependency(depends=['test_a']) @pytest.mark.first def test_b(): pass ``` ``` $ pytest -v -x -s test.py ================================== test session starts ================================== platform linux -- Python 3.7.4, pytest-5.1.1,...
Test ordering does not seem to work anymore. As an example, this is straight from the [docs](https://pytest-ordering.readthedocs.io/en/develop/#other-markers): ```python import pytest @pytest.mark.second_to_last def test_three(): assert True @pytest.mark.last def test_four(): assert True...
Please consider [transferring this plugin](https://github.com/pytest-dev/pytest/blob/master/CONTRIBUTING.rst#submitting-plugins-to-pytest-dev) to the pytest-dev organization.