Allows synchronizing "C# NUnit Tests" and publish results from TRX result files.
You can find more information about the SpecSync sample plugins in the repository page.
- Plugin package: SpecSync.Plugin.NUnitTestSource
- Plugin source: SpecSync.Plugin.NUnitTestSource
- Sample project: SampleProject
The plugin processes the C# files in the configured folder tree and searches for NUnit test methods, like:
[Test]
[Category("MyCategory")]
public void OnePassingTest()
{
...
}
These test methods are the potential local test cases to be synchronized.
Once the methods are linked to a newly created Azure DevOps Test Case, the Test Case ID is inserted into the
C# file as a [Category]
attribute using a "SpecSync tag" (see below).
- Specify tags for the tests, using the
[Category]
attribute:[Category("my_tag")]
or[Category("story:123")]