-
Notifications
You must be signed in to change notification settings - Fork 325
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 "!~" operator to test filter #1794
Comments
@mano-cz, we don't support similar to( However if you exact ask is |
I’d like to have a go at this if that’s ok? |
Issue #1385 describes the same functionality. |
How can I know if my $: dotnet vstest
--TestCaseFilter|/TestCaseFilter:<Expression>
Run tests that match the given expression.
<Expression> is of the format <property>Operator<value>[|&<Expression>]
where Operator is one of =, != or ~ (Operator ~ has 'contains'
semantics and is applicable for string properties like DisplayName).
Parenthesis () can be used to group sub-expressions.
Examples: /TestCaseFilter:"Priority=1"
/TestCaseFilter:"(FullyQualifiedName~Nightly
|Name=MyTestMethod)" And how can I get this change? |
Sorry, my problem was unupgraded |
From @mano-cz on October 10, 2018 8:12
Steps to reproduce
run "dotnet test Some.csproj --filter FullyQualifiedName!~Some.Namespace"
Expected behavior
Not contain operator will work.
Actual behavior
Not contain operator is not implemented yet.
Use case
Parallelization of test execution according to namespaces e.g.:
#1 thread - filter on few namespaces
#2 thread - filter on other few namespaces
#3 thread - filter on remaining (dynamic) namespaces (with usage of !~ operator on namespaces from previewous threads)
Copied from original issue: dotnet/cli#10149
The text was updated successfully, but these errors were encountered: