vendredi 28 août 2015

Displaying the Description attribute of a Unit Test in Visual Studio 2015

Does anyone know how to display the description attribute during a test run in Visual Studio 2015?

For example given this test:

        [TestMethod]
        [TestCategory("With Fakes")]
        [Description("Posting a blog entry without the required data should return a BadRequest")]
        public async Task BlogEntryPostTest1()
        {
          ... do test
        }

How would I get the description to display when running? I don't think Test Explorer will do it; is there any alternative?

Aucun commentaire:

Enregistrer un commentaire