Disable specific scrubbers locally per test, while keep enabled globally #1511
|
Hi Is there any way to disable a globally enabled scrubber? I have a [ModuleInitializer]
public static void InitializeVerify()
{
VerifierSettings
.ScrubInlineDateTimes("yyyyMMdd");
}Now, my problem is, that a specifc test has a long hex converted string which sometimes has something like Calling So: how can I override a general global setting with something test-specific? |
Answered by
SimonCropp
Aug 17, 2025
Replies: 2 comments 5 replies
|
i have deployed 30.7.3 that should fix this |
1 reply
Answer selected by
IT-VBFK
|
Is it possible that this breaks doing the inverse: disabling scrubbing globally, but enabling locally? public abstract class AppTest
{
static AppTest()
{
VerifierSettings.DontScrubGuids();
}
}
public class MyTest : AppTest
{
[Fact]
public async Task TestCase()
{
// doesn't scrub
await VerifyJson("json").ScrubInlineGuids();
}
} |
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
i have deployed 30.7.3 that should fix this