Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add testing level tags #842

Merged
merged 1 commit into from
Nov 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)
bschimke95 marked this conversation as resolved.
Show resolved Hide resolved
combine_tags("up_to_weekly", PULL_REQUEST, NIGHTLY, WEEKLY)
Loading