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? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
|
i have deployed 30.7.3 that should fix this |
Beta Was this translation helpful? Give feedback.
-
|
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();
}
} |
Beta Was this translation helpful? Give feedback.
i have deployed 30.7.3 that should fix this