Hello, It seems Pants is using "OR" when processi...
# general
r
Hello, It seems Pants is using "OR" when processing tags passed to "test" target: https://www.pantsbuild.org/docs/advanced-target-selection#tags-annotating-targets ie it will run all tests which has a tag in the list. Is it possible to run test target with multiple tags, so it uses "AND"? ie only run tests which contains all tags in the list
1
c
The docs are unclear here, but I could suspect that
--tag=opt1,opt2
would use AND, while
--tag=opt1 --tag=opt2
would be OR. How are you providing the tags?
r
Thanks, it works! But it is vice versa.
👍 1
c
oh, ok! 😅