Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
art
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Diffa

NuGet NuGet

What it is?

Diffa is a unit-test assertion library that allows you to verify your test results against approved files. Inspired by ApprovalTests, Diffa will also automatically launch your favorite diff tool when an assertion fails so you can compare approve the results.

Basic Use

[TestClass]
[Reporter(typeof(DiffReporter))]
[ApprovedFolder("approved-results/")] /* optional */
public class UnitTests
{
    [TestMethod]
    [ApprovedName("9e9516c4-3ed6-449d-b679-cbc858067c6f")] /* optional */
    public void Ensure_results_are_well_formed()
    {
        Diffa.Approve("These are my test results.");
    }
}

Installation

Available at:

NUGET: PM> Install-Package Acklann.Diffa

Contributing

About

A lightweight version of ApprovalTests for netstandard projects.

Topics

Resources

License

Packages

No packages published
You can’t perform that action at this time.