Skip to content

Commit

Permalink
doc
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Apr 13, 2024
1 parent b76e3c5 commit a439aac
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
8 changes: 8 additions & 0 deletions docs/build-server.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,11 @@ if (BuildServerDetector.Detected)
```
<sup><a href='/src/Verify.Tests/Snippets/Snippets.cs#L56-L70' title='Snippet source file'>snippet source</a> | <a href='#snippet-DerivePathInfoAppVeyor' title='Start of snippet'>anchor</a></sup>
<!-- endSnippet -->


## Attachments

For MSTest and NUnit, Verify will add new received files to the test context's attachments. So for build servers that respect MSTest or NUnit attachment APIs, no changes are required to build configurations.<!-- include: test-context-attachments. path: /docs/mdsource/test-context-attachments.include.md -->

* [NUnit Attachments](https://docs.nunit.org/articles/nunit/writing-tests/TestContext.html#addformatter-32)
* [MSTest TestContext.AddResultFile](https://learn.microsoft.com/en-us/dotnet/api/microsoft.visualstudio.testtools.unittesting.testcontext.addresultfile?view=visualstudiosdk-2022#microsoft-visualstudio-testtools-unittesting-testcontext-addresultfile(system-string))<!-- endInclude -->
7 changes: 6 additions & 1 deletion docs/mdsource/build-server.source.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,9 @@ In some scenarios, as part of a build, the test assemblies are copied to a diffe

For example a possible implementation for [AppVeyor](https://www.appveyor.com/) could be:

snippet: DerivePathInfoAppVeyor
snippet: DerivePathInfoAppVeyor


## Attachments

include: test-context-attachments
4 changes: 4 additions & 0 deletions docs/mdsource/test-context-attachments.include.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
For MSTest and NUnit, Verify will add new received files to the test context's attachments. So for build servers that respect MSTest or NUnit attachment APIs, no changes are required to build configurations.

* [NUnit Attachments](https://docs.nunit.org/articles/nunit/writing-tests/TestContext.html#addformatter-32)
* [MSTest TestContext.AddResultFile](https://learn.microsoft.com/en-us/dotnet/api/microsoft.visualstudio.testtools.unittesting.testcontext.addresultfile?view=visualstudiosdk-2022#microsoft-visualstudio-testtools-unittesting-testcontext-addresultfile(system-string))

0 comments on commit a439aac

Please sign in to comment.