Skip to content

Test suite launcher for Salt's test suite. It takes a skiplist that defines which tests files to ignore and which tests to skip

License

Notifications You must be signed in to change notification settings

openSUSE/salt-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

salt-test

salt-test is a test suite launcher for Salt's test suite by "test group". It takes a skiplist that defines which tests files to ignore and which tests to skip. salt-test expects the Salt test suite installed via the python3-salt-testsuite/venv-salt-minion-testsuite rpms. By default, venv-salt-minion-testsuite is used (--flavor bundle). Pass --flavor classic to execute tests inside the python3-salt-testsuite package.

Usage

The basic usage is salt-test --skiplist skiplist.toml <test group>.

For example, to run unit tests with our openSUSE skiplist you can use:

salt-test --skiplist https://raw.githubusercontent.com/openSUSE/salt-test-skiplist/main/skipped_tests.toml unit

Of course, a skiplist can also be a local file:

salt-test --skiplist skipped.toml unit

Extra arguments that are passed through to pytest can be specified after the "test group" and the separator--. This feature can be used to enable e.g. slow or destructive integration tests:

salt-test --skiplist skipped.toml integration -- --slow

To run the a version of the test suite that's not packaged yet (the test suite package must still be installed to provide dependencies), you can use the --directory parameter:

salt-test --skiplist skipped.toml --directory /code/ functional

Test requirements

  • pytest

About

Test suite launcher for Salt's test suite. It takes a skiplist that defines which tests files to ignore and which tests to skip

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages