public ScenarioReportingXunitTestRunner(ScenarioRunner scenarioRunner, ScenarioReport report, ITest test, IMessageBus messageBus, Type testClass, object[] constructorArguments, MethodInfo testMethod, object[] testMethodArguments, string skipReason, IReadOnlyList <BeforeAfterTestAttribute> beforeAfterAttributes, ExceptionAggregator aggregator, CancellationTokenSource cancellationTokenSource) : base(test, messageBus, testClass, constructorArguments, testMethod, testMethodArguments, skipReason, beforeAfterAttributes, aggregator, cancellationTokenSource) { _scenarioRunner = scenarioRunner; _report = report; }
public ScenarioReportingXunitTestCaseRunner(ScenarioRunner scenarioRunner, ScenarioReport report, IXunitTestCase testCase, string displayName, string skipReason, object[] constructorArguments, object[] testMethodArguments, IMessageBus messageBus, ExceptionAggregator aggregator, CancellationTokenSource cancellationTokenSource) : base(testCase, displayName, skipReason, constructorArguments, testMethodArguments, messageBus, aggregator, cancellationTokenSource) { _scenarioRunner = scenarioRunner; _report = report; }
public ScenarioReportingTestInvoker(ScenarioRunner scenarioRunner, ScenarioReport report, ITest test, IMessageBus messageBus, Type testClass, object[] constructorArguments, MethodInfo testMethod, object[] testMethodArguments, IReadOnlyList <BeforeAfterTestAttribute> beforeAfterAttributes, ExceptionAggregator aggregator, CancellationTokenSource cancellationTokenSource) : base(test, messageBus, testClass, constructorArguments, testMethod, testMethodArguments, beforeAfterAttributes, aggregator, cancellationTokenSource) { _scenarioRunner = scenarioRunner; _report = report ?? throw new ArgumentNullException(nameof(report)); _openVerify = GetType().GetMethod(nameof(VerifyAndReport), BindingFlags.Instance | BindingFlags.NonPublic); }
protected override async Task AfterTestCollectionStartingAsync() { await base.AfterTestCollectionStartingAsync(); Aggregator.Run(() => { _scenarioRunner = CollectionFixtureMappings.Values.OfType <ScenarioRunner>().SingleOrDefault(); if (_scenarioRunner != null) { _scenarioRunner.DelayReporting = true; _scenarioRunner.Scope = TestCollection.CollectionDefinition.Name; _scenarioRunner.Group = TestCollection.CollectionDefinition.Name; } }); }