public IEnumerable <IXunitTestCase> Discover(ITestFrameworkDiscoveryOptions discoveryOptions, ITestMethod testMethod, IAttributeInfo factAttribute) { var testCase = new AllureXunitTestCase(_diagnosticMessageSink, discoveryOptions.MethodDisplayOrDefault(), TestMethodDisplayOptions.None, testMethod); return(new[] { testCase }); }
public IEnumerable <IXunitTestCase> Discover(ITestFrameworkDiscoveryOptions discoveryOptions, ITestMethod testMethod, IAttributeInfo factAttribute) { var testCase = new AllureXunitTestCase(_diagnosticMessageSink, discoveryOptions.MethodDisplayOrDefault(), TestMethodDisplayOptions.None, testMethod); CustomMessageSink.AddTestCaseHandling(testCase); yield return(testCase); }
public override IEnumerable <IXunitTestCase> Discover(ITestFrameworkDiscoveryOptions discoveryOptions, ITestMethod testMethod, IAttributeInfo factAttribute) { var testCases = base.Discover(discoveryOptions, testMethod, factAttribute); foreach (var item in testCases) { var testCase = new AllureXunitTestCase(DiagnosticMessageSink, discoveryOptions.MethodDisplayOrDefault(), TestMethodDisplayOptions.None, testMethod, item.TestMethodArguments); CustomMessageSink.AddTestCaseHandling(testCase); yield return(testCase); } }
public static void AddTestCaseHandling(AllureXunitTestCase testCase) { TestCasesDictionary.Add(testCase.UniqueID, testCase); }