diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index 91b09c73752..f1e1e2d6607 100644 --- a/CONTRIBUTING.rst +++ b/CONTRIBUTING.rst @@ -513,7 +513,7 @@ Now you can run your tests: :: - python -m nox -e "pytest-3.7(coverage=False)" -- tests/unit/cli/test_batch.py + python -m nox -e "test-3(coverage=False)" -- tests/unit/cli/test_batch.py It's a good idea to install `espeak `__ or use ``say`` on @@ -522,11 +522,30 @@ this: :: - python -m nox -e "pytest-3.7(coverage=False)" -- tests/unit/cli/test_batch.py; espeak "Tests done, woohoo!" + python -m nox -e "test-3(coverage=False)" -- tests/unit/cli/test_batch.py; espeak "Tests done, woohoo!" That way you don't have to keep monitoring the actual test run. +:: + + python -m nox -e "test-3(coverage=False)" -- --core-tests + +You can enable or disable test groups locally by passing there 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. + * "--slow-tests" - Tests that are ~10s or slower. + * "--core-tests" - Tests of any speed that test the root parts of salt. + * "--flaky-jail" - Test that need to be temporarily skipped. + +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. + * 'test:no-fast" + * "test:core" + * "test:slow" + * "test:flaky-jail" + + Changelog and commit! --------------------- When you write your commit message you should use imperative style. Do