How to combine trait filter and query filter using --query-filter in MTP #3302
-
I'm trying to run only the tests matching a specific namespace, that are marked with a specific attribute For example, I'm trying to run only acceptance tests in a namespace "A" marked as The documentation is a little confusing here. It mentions "add an appropriate trait expression to the end of your query". But if I do this, tests marked as Tacking directly to the end, (As shown in the example on the MSTest Graph Filter docs here) without a leading slash or space gives an error The documentation also mentions & can only be used within a single segment, but trying results in no tests running |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Is there an error in your paste? There's a space that shouldn't be in there (and the closing quote is missing). This:
Should be this:
This does work for me: |
Beta Was this translation helpful? Give feedback.
-
Ah, okay. I was reading that as |
Beta Was this translation helpful? Give feedback.
Is there an error in your paste? There's a space that shouldn't be in there (and the closing quote is missing). This:
--filter-query "/*/AcceptanceTests.A* /[TestGroup=Critical]
Should be this:
--filter-query "/*/AcceptanceTests.A*/[TestGroup=Critical]"
This does work for me: