protected virtual void TestStarted(string suitId, MSTestResult testResult) { TestCaseStartedWithTimeEvent testCase = new TestCaseStartedWithTimeEvent(suitId, testResult.Name, testResult.Start); if (testResult.Owner != null) { label ownerLabel = new label("Owner", testResult.Owner); testCase.Labels = new label[] { ownerLabel }; // allure doesnt support custom labels so until issue #394 is solved // the test description is used. // // https://github.com/allure-framework/allure-core/issues/394 string description = FormatDescription(testResult); testCase.Description = new description(descriptiontype.text, description); } Allure.Lifecycle.Fire(testCase); }
protected virtual void TestStarted(string suitId, MSTestResult testResult) { TestCaseStartedWithTimeEvent testCase = new TestCaseStartedWithTimeEvent(suitId, testResult.Name, testResult.Start); if (testResult.Owner != null) { label ownerLabel = new label("Owner", testResult.Owner); testCase.Labels = new label[]{ ownerLabel }; // allure doesnt support custom labels so until issue #394 is solved // the test description is used. // // https://github.com/allure-framework/allure-core/issues/394 string description = FormatDescription(testResult); testCase.Description = new description(descriptiontype.text, description); } Allure.Lifecycle.Fire(testCase); }