Microsoft.Testing.Platform: not equal operator not working in mstest runner graph query filtering #4302
Labels
Area: Testing Platform
Belongs to the Microsoft.Testing.Platform core library
Milestone
Describe the bug
Using new Microsoft.Testing.Platform library with
TUnit
framework. It seems like not all of the test filtering operators documented in graph query filtering are supported. For example, when usingTUnit
with--treenode-filter
command line parameter the not equal!=
operator doesn't seem to be working for me.Steps To Reproduce
Consider the following code snippet:
The following command runs only the first test, as expected
dotnet run --treenode-filter /*/*/*/*[Category=Smoke]
:However,
dotnet run --treenode-filter /*/*/*/*[Category!=Smoke]
doesn't seem to find anything:Expected behavior
Filter should exclude tests with
Category
property set toSmoke
.Actual behavior
Filter excludes all tests.
Additional context
Seems like filter parser doesn't support
!=
operator at all - https://github.com/microsoft/testfx/blob/main/src/Platform/Microsoft.Testing.Platform/Requests/TreeNodeFilter/TreeNodeFilter.cs#L56Related issue in
TUnit
repository - thomhurst/TUnit#1381SDK version: 9.0.101
OS version: Microsoft Windows [Version 10.0.26100.2454]
TUnit version: 0.4.86
Microsoft.Testing.Platform version: 1.4.3
The text was updated successfully, but these errors were encountered: