vendredi 27 mai 2016

Visual Studio C# unit testing - report results for each run

Is there way to automate reporting of each test run?

Now I do this

[TestMethod]
public void Test1()
{
   ReportTestStarted("Test1");
   // do test
   ReportTestFinshed("Test1");
}

with assumption that when test started it should be finished then it is good. ReportTest*() collects all results and then stores them somehow.

I hope that it is possible to use Attributes and update [TestMethod] so it will do such work automatically. Any ideas?

Aucun commentaire:

Enregistrer un commentaire