mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 09:40:20 +00:00
fix rst
This commit is contained in:
parent
80896c6492
commit
04e4c4ad61
2 changed files with 9 additions and 1 deletions
|
@ -532,6 +532,7 @@ That way you don't have to keep monitoring the actual test run.
|
||||||
python -m nox -e "test-3(coverage=False)" -- --core-tests
|
python -m nox -e "test-3(coverage=False)" -- --core-tests
|
||||||
|
|
||||||
You can enable or disable test groups locally by passing their respected flag:
|
You can enable or disable test groups locally by passing their respected flag:
|
||||||
|
|
||||||
* --no-fast-tests - Tests that are ~10s or faster. Fast tests make up ~75% of tests and can run in 10 to 20 minutes.
|
* --no-fast-tests - Tests that are ~10s or faster. Fast tests make up ~75% of tests and can run in 10 to 20 minutes.
|
||||||
* --slow-tests - Tests that are ~10s or slower.
|
* --slow-tests - Tests that are ~10s or slower.
|
||||||
* --core-tests - Tests of any speed that test the root parts of salt.
|
* --core-tests - Tests of any speed that test the root parts of salt.
|
||||||
|
@ -539,6 +540,7 @@ You can enable or disable test groups locally by passing their respected flag:
|
||||||
|
|
||||||
In Your PR, you can enable or disable test groups by setting a label.
|
In Your PR, you can enable or disable test groups by setting a label.
|
||||||
All thought the fast, slow, and core tests specified in the change file will always run.
|
All thought the fast, slow, and core tests specified in the change file will always run.
|
||||||
|
|
||||||
* test:no-fast
|
* test:no-fast
|
||||||
* test:core
|
* test:core
|
||||||
* test:slow
|
* test:slow
|
||||||
|
|
|
@ -455,6 +455,7 @@ can be used
|
||||||
Test Groups
|
Test Groups
|
||||||
===========
|
===========
|
||||||
Salt has four groups
|
Salt has four groups
|
||||||
|
|
||||||
* fast - Tests that are ~10s or faster. Fast tests make up ~75% of tests and can run in 10 to 20 minutes.
|
* fast - Tests that are ~10s or faster. Fast tests make up ~75% of tests and can run in 10 to 20 minutes.
|
||||||
* slow - Tests that are ~10s or slower.
|
* slow - Tests that are ~10s or slower.
|
||||||
* core - Tests of any speed that test the root parts of salt.
|
* core - Tests of any speed that test the root parts of salt.
|
||||||
|
@ -462,6 +463,7 @@ Salt has four groups
|
||||||
|
|
||||||
|
|
||||||
Pytest Decorators
|
Pytest Decorators
|
||||||
|
|
||||||
* @pytest.mark.slow_test
|
* @pytest.mark.slow_test
|
||||||
* @pytest.mark.core_test
|
* @pytest.mark.core_test
|
||||||
* @pytest.mark.flaky_jail
|
* @pytest.mark.flaky_jail
|
||||||
|
@ -477,7 +479,9 @@ Pytest Decorators
|
||||||
You can also mark all the tests in file.
|
You can also mark all the tests in file.
|
||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
pytestmark = [pytest.mark.core_test]
|
pytestmark = [
|
||||||
|
pytest.mark.core_test,
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
def test_ping(self):
|
def test_ping(self):
|
||||||
|
@ -495,6 +499,7 @@ You can also mark all the tests in file.
|
||||||
self.assertTrue(self.run_function("test.ping"))
|
self.assertTrue(self.run_function("test.ping"))
|
||||||
|
|
||||||
You can enable or disable test groups locally by passing there respected flag:
|
You can enable or disable test groups locally by passing there respected flag:
|
||||||
|
|
||||||
* --no-fast-tests
|
* --no-fast-tests
|
||||||
* --slow-tests
|
* --slow-tests
|
||||||
* --core-tests
|
* --core-tests
|
||||||
|
@ -502,6 +507,7 @@ You can enable or disable test groups locally by passing there respected flag:
|
||||||
|
|
||||||
In Your PR you can enable or disable test groups by setting a label.
|
In Your PR you can enable or disable test groups by setting a label.
|
||||||
All thought the fast, slow and core tests specified in the change file will always run.
|
All thought the fast, slow and core tests specified in the change file will always run.
|
||||||
|
|
||||||
* test:no-fast
|
* test:no-fast
|
||||||
* test:slow
|
* test:slow
|
||||||
* test:core
|
* test:core
|
||||||
|
|
Loading…
Add table
Reference in a new issue