Este conteúdo não está disponível no idioma selecionado.
Chapter 5. Using ostestr to Run Tempest
Ostestr is an OpenStack wrapper for the testr
test runner.
5.1. Running Smoke Tests Copiar o linkLink copiado para a área de transferência!
Smoke testing is a type of preliminary testing which only covers the most important functionality. While they are not comprehensive, running smoke tests can save time if they do identify a problem.
To run the smoke tests:
ostestr '.*smoke'
# ostestr '.*smoke'
5.2. Passing Tests Using Whitelist Files Copiar o linkLink copiado para a área de transferência!
A whitelist file is a file which contains regular expressions to select tests to include. Regular expressions are separated by a newline.
To use a whitelist file:
ostestr --whitelist-file <whitelist_file>
# ostestr --whitelist-file <whitelist_file>
Alternatively:
ostestr -w <whitelist_file>
# ostestr -w <whitelist_file>
5.3. Skipping Tests Using Blacklist Files Copiar o linkLink copiado para a área de transferência!
A blacklist file is a file which contains regular expressions to select tests to exclude. Regular expressions are separated by a newline.
To use a blacklist file:
ostestr --blacklist-file <blacklist_file>
# ostestr --blacklist-file <blacklist_file>
Alternatively:
ostestr -b <blacklist_file>
# ostestr -b <blacklist_file>
5.4. Running Tests in Parallel Concurrently, or Serially Copiar o linkLink copiado para a área de transferência!
Run the tests serially:
ostestr --serial
# ostestr --serial
Run the tests in parallel (this is the default):
ostestr --parallel
# ostestr --parallel
Specify the number of workers to use when running tests in parallel:
ostestr --concurrency <workers>
# ostestr --concurrency <workers>
Alternatively:
ostestr -c <workers>
# ostestr -c <workers>
By default, this is set to the number of CPUs.