Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
            }
        }