dry-match-62274
01/08/2020, 8:43 AMtag
.
for example we have below test definition with tags :
target1(…,tag=integration-test), target2(…,tag=unit-test-team1), target3(…,tag=unit-test-team2), …Then for simple we created an aggregation target:
targetAll(dependencies=[target1,target2,target3,…])we thought we can filter out ‘integration-test’ from all tests by using
./pants test targetAll --tags=-integration-testHowever, target1 is still executed, so we thought the filter on
tag
will not work with the sub targets.
do you have any recommendations about how tag
should be used in this situation?hundreds-father-404
01/08/2020, 3:16 PMbrash-airport-5260
01/09/2020, 1:21 AMhundreds-father-404
01/09/2020, 1:23 AM./pants test my-catch-all
, it’s better to run ./pants test ::
, which will run against all targetsdry-match-62274
01/10/2020, 1:11 AMhundreds-father-404
01/10/2020, 3:39 AM./pants test tests/util/foo.py
rather than having to specify a target :)