Is it possible I can use a wildcard in the TestName element because I have test written by another team that is using Guid's and in the object the ToString method uses it so each time I try to ignore it comes back and then my NCRUNCHPROJECT file is growing with different Guid's?
<IgnoredTests>
<NamedTestSelector>
<TestName>MyTests.RunQuick<Customer>(Guid: af1c2675-74a2-42e4-b1e2-036be96aee61)</TestName>
</NamedTestSelector>
If this could be possible
<IgnoredTests>
<NamedTestSelector>
<TestName>MyTests.RunQuick<Customer>(Guid: [h]*[/h])</TestName>
</NamedTestSelector>
Build/Test Issues
Use Wildcard in the TestName element in NCRUNCHPROJECT file
Started by DHirani on 1,477 views
Remco NCrunch Developer
#15966
31 Jan 2022 23:04 UTC
Hi, thanks for posting.
Unfortunately, this doesn't work, as the IgnoredTests selectors are designed to be simplified names that can be sensibly manipulated by the NCrunch UI. Having wildcards in the expressions creates confusion for the UI as it then becomes much more difficulty to sensibly switch them on and off with a button.
The problem of having a GUID in the test name is going to give you much bigger problems than difficulty with the ignored test selectors. You might be able to work around this with a test category but I very strongly recommend that you fix this test. More information about this problem.
Edit: Ignoring the fixture containing the test might let you shut it off without needing to specify the GUID.
Unfortunately, this doesn't work, as the IgnoredTests selectors are designed to be simplified names that can be sensibly manipulated by the NCrunch UI. Having wildcards in the expressions creates confusion for the UI as it then becomes much more difficulty to sensibly switch them on and off with a button.
The problem of having a GUID in the test name is going to give you much bigger problems than difficulty with the ignored test selectors. You might be able to work around this with a test category but I very strongly recommend that you fix this test. More information about this problem.
Edit: Ignoring the fixture containing the test might let you shut it off without needing to specify the GUID.
Edited 31 Jan 2022 23:06 UTC
Post a reply
Log in to reply.