示例#1
0
        public IEnumerable <IXunitTestCase> Discover(ITestFrameworkDiscoveryOptions discoveryOptions,
                                                     ITestMethod testMethod, IAttributeInfo factAttribute)
        {
            var testCase = new AllureXunitTestCase(_diagnosticMessageSink, discoveryOptions.MethodDisplayOrDefault(),
                                                   TestMethodDisplayOptions.None, testMethod);

            return(new[] { testCase });
        }
示例#2
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);
        }
示例#3
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);
            }
        }
 public static void AddTestCaseHandling(AllureXunitTestCase testCase)
 {
     TestCasesDictionary.Add(testCase.UniqueID, testCase);
 }