Verify.NUnit version: 1.19.2
NCrunch version: 4.3.0.13 trial
Visual Studio 2019: 16.4.5
In this commit from the SimonCropp/Verify repo, both the command line and diff viewer functionality of the Verify library is disabled when NCrunch is detected. I understand that during the test executions that occur automatically as code is edited, we would not want the diff viewer to pop up. But I expected that when I manually ran the tests from NCrunch the diff viewer and clipboard functionality of would work. I am just trialing NCrunch right now to see if it would work for my team, so don't necessarily need a feature update for Verify.NUnit.
What would be the recommended workflow when a test failure from a Verify.NUnit assertion fails when using NCrunch?
Sample test:
using System.Threading.Tasks;
using NUnit.Framework;
namespace TestProject
{
[TestFixture]
public class MyTestClass
{
[Test]
public async Task MyTest()
{
const string actual = @"This is a
a string
of text.";
await VerifyNUnit.Verifier.Verify(actual);
}
}
}
I'm not sure if this is optimal, but what I've found so far is this process:
Verify.NUnitto execute allowing approval of the test results.This requires both Test Explorer and NCrunch to be properly configured to run tests in VS, which may not be the case for all developers.