Skip to content

Commit

Permalink
Merge branch 'master' into nunit-4
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed May 11, 2024
2 parents e904407 + 9489957 commit 6fb6025
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ Once you create the class, you select it with the `[UseReporter(typeof(CustomDif
<!-- snippet: CustomDiffReporter.cs -->
<a id='snippet-CustomDiffReporter.cs'></a>
```cs
using ApprovalTests.Reporters.TestFrameworks;

public class CustomDiffReporter :
FirstWorkingReporter
{
Expand All @@ -44,7 +42,7 @@ public class CustomDiffReporter :
}
}
```
<sup><a href='/src/ApprovalTests.Tests/Reporters/CustomDiffReporter.cs#L1-L22' title='Snippet source file'>snippet source</a> | <a href='#snippet-CustomDiffReporter.cs' title='Start of snippet'>anchor</a></sup>
<sup><a href='/src/ApprovalTests.Tests/Reporters/CustomDiffReporter.cs#L1-L20' title='Snippet source file'>snippet source</a> | <a href='#snippet-CustomDiffReporter.cs' title='Start of snippet'>anchor</a></sup>
<!-- endSnippet -->

You can also override the default order while using `DiffReporter` by defining `DiffEngine_ToolOrder` environment variable. The value of that variable should contain a delimiter (`,`, `|`, ` `) separated list of the diff tool names in the desired order. More details about that in [Diff Tool Order](https://github.com/VerifyTests/DiffEngine/blob/main/docs/diff-tool.order.md)
Expand Down
1 change: 1 addition & 0 deletions src/ApprovalTests.Tests/GlobalUsings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
global using ApprovalTests.Namers;
global using ApprovalTests.Namers.StackTraceParsers;
global using ApprovalTests.Reporters;
global using ApprovalTests.Reporters.TestFrameworks;
global using ApprovalTests.Scrubber;
global using ApprovalTests.Utilities;
global using ApprovalTests.WindowsRegistry;
Expand Down
4 changes: 1 addition & 3 deletions src/ApprovalTests.Tests/Reporters/CustomDiffReporter.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using ApprovalTests.Reporters.TestFrameworks;

public class CustomDiffReporter :
public class CustomDiffReporter :
FirstWorkingReporter
{
public CustomDiffReporter()
Expand Down
2 changes: 0 additions & 2 deletions src/ApprovalTests.Tests/Reporters/MultiReporterTest.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using ApprovalTests.Reporters.TestFrameworks;

[TestFixture]
public class MultiReporterTest
{
Expand Down
1 change: 0 additions & 1 deletion src/ApprovalTests.Tests/Reporters/NUnitReporterTest.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using ApprovalTests.Reporters.TestFrameworks;
using NUnit.Framework.Internal;

[TestFixture]
Expand Down
2 changes: 0 additions & 2 deletions src/ApprovalTests.Tests/Reporters/NUnitReporterWithCleanup.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using ApprovalTests.Reporters.TestFrameworks;

public class NUnitReporterWithCleanup : NUnitReporter
{
public override void Report(string approved, string received)
Expand Down

0 comments on commit 6fb6025

Please sign in to comment.