Skip to content

Commit

Permalink
pants: tag pack tests with "pack"
Browse files Browse the repository at this point in the history
This facilitates running just the pack tests via pants using:
pants --tag=pack test ::
  • Loading branch information
cognifloyd committed Sep 13, 2024
1 parent 4234724 commit 77ee17c
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 0 deletions.
5 changes: 5 additions & 0 deletions contrib/chatops/tests/BUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# tests can only be dependencies of other tests in this directory
__dependents_rules__(("*", "/**", "!*"))

__defaults__(
{python_test: dict(tags=["pack"])},
extend=True,
)

files(
name="fixtures",
sources=["fixtures/*.json"],
Expand Down
5 changes: 5 additions & 0 deletions contrib/core/tests/BUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# tests can only be dependencies of other tests in this directory
__dependents_rules__(("*", "/**", "!*"))

__defaults__(
{python_test: dict(tags=["pack"])},
extend=True,
)

python_tests(
skip_pylint=True,
overrides={
Expand Down
5 changes: 5 additions & 0 deletions contrib/examples/tests/BUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# tests can only be dependencies of other tests in this directory
__dependents_rules__(("*", "/**", "!*"))

__defaults__(
{python_test: dict(tags=["pack"])},
extend=True,
)

python_tests(
skip_pylint=True,
)
5 changes: 5 additions & 0 deletions contrib/linux/tests/BUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# tests can only be dependencies of other tests in this directory
__dependents_rules__(("*", "/**", "!*"))

__defaults__(
{python_test: dict(tags=["pack"])},
extend=True,
)

python_tests(
skip_pylint=True,
)
5 changes: 5 additions & 0 deletions contrib/packs/tests/BUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# tests can only be dependencies of other tests in this directory
__dependents_rules__(("*", "/**", "!*"))

__defaults__(
{python_test: dict(tags=["pack"])},
extend=True,
)

python_tests(
skip_pylint=True,
)

0 comments on commit 77ee17c

Please sign in to comment.