Skip to content

Commit

Permalink
add testing level tags (#842)
Browse files Browse the repository at this point in the history
  • Loading branch information
bschimke95 authored Nov 27, 2024
1 parent 146f53e commit 3fc2241
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/integration/requirements-test.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
coverage[toml]==7.2.5
pytest==7.3.1
pytest_tagging==1.5.3
PyYAML==6.0.1
tenacity==8.2.3
pylint==3.2.5
Expand Down
2 changes: 2 additions & 0 deletions tests/integration/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

LOG = logging.getLogger(__name__)

pytest_plugins = ("pytest_tagging",)

# The following snaps will be downloaded once per test run and preloaded
# into the harness instances to reduce the number of downloads.
PRELOADED_SNAPS = ["snapd", "core20"]
Expand Down
12 changes: 12 additions & 0 deletions tests/integration/tests/test_util/tags.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#
# Copyright 2024 Canonical, Ltd.
#
from pytest_tagging import combine_tags

PULL_REQUEST = "pull_request"
NIGHTLY = "nightly"
WEEKLY = "weekly"

# Those tags can be used for a convenient way to run multiple test levels.
combine_tags("up_to_nightly", PULL_REQUEST, NIGHTLY)
combine_tags("up_to_weekly", PULL_REQUEST, NIGHTLY, WEEKLY)

0 comments on commit 3fc2241

Please sign in to comment.