Allows synchronizing "C# MsTest 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.MsTestTestSource
- Plugin source: SpecSync.Plugin.MsTestTestSource
- Sample project: SampleProject
The plugin processes the C# files in the configured folder tree and searches for MsTest test methods, like:
[TestMethod]
[TestCategory("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 [TestCategory]
attribute using a "SpecSync tag" (see below).
- Specify tags for the tests, using the
[TestCategory]
attribute:[TestCategory("my_tag")]
or[TestCategory("story:123")]