tobiko/releasenotes/notes
Eduardo Olivares 5af7c53c05 Add support to skip tests from CLI
With this patch, a new pytest optional arg has been added:
--skipregex

When it is used, tests are skipped when the regex is found in their test
names. Fully qualified test names are used for this search. Example:
tobiko.tests.unit.test_exception.TestException.test_init

It can be used from CLI with pytest like this:
$ .tox/py3/bin/pytest \
  --skipregex='test_join_chunks_.*_bytes|test_join_chunks_with_unicodes' \
  tobiko/tests/unit

It can be used from CLI with tox like this:
$ PYTEST_ADDOPTS="--skipregex='test_join_chunks_.*_bytes|test_join_chunks_with_unicodes'" \
  TOX_PYTHON=python3.9 \
  tox -e py3

It can be used from the Tobiko Infrared plugin by using the following
option (limitation: the skipregex is applied to all the steps from the
the executed Tobiko workflow):
$ infrared tobiko ... --pytest-addopts "--skipregex='test_join_chunks_.*_bytes|test_join_chunks_with_unicodes'"

It can be used from a zuul job by configuring the following variable
within the zuul job yaml file (limitation: the skipregex is applied to
all the steps from the executed Tobiko workflow):
pytest_addopts_global: "--skipregex='test_join_chunks_.*_bytes|test_join_chunks_with_unicodes'"

Change-Id: I8ee32ba467bd70142816953598d1736fa353d3d0
2023-12-04 12:17:26 +01:00
..
.placeholder Add reno for release notes management 2019-04-03 12:58:54 +00:00
add-manila-support-d2dd3aab05b75439.yaml [Manila] pre-upgrade resource creation and post-procedure validation 2023-10-09 12:45:10 +00:00
Added-parser-for-`ss`-command-ac426b522eb8adbe.yaml Create module to capture output of ss command 2022-09-07 12:48:17 +03:00
Added-support-for-metalsmith-00b9f808c1030236.yaml Add release note about metalsmith client support 2022-07-06 10:40:45 +02:00
drop-py36-py37-support-e90a696923eb3eaf.yaml Dropping python3.6 and python3.7 support 2023-08-25 15:39:07 +02:00
skipregex-new-arg-a9f1c001cbc823f9.yaml Add support to skip tests from CLI 2023-12-04 12:17:26 +01:00