public void RunTestCases(TestAssembly testAssembly, string[] testCaseStrings, IMessageSink messageSink, ITestFrameworkExecutionOptions options)
        {
            var runner = new XunitTestAssemblyRunner(
                Deproxify(testAssembly),
                testCaseStrings.Select(Deserialize),
                messageSink, messageSink, options);

            runner.RunAsync().Ignore();
        }
Exemplo n.º 2
0
 protected override async void RunTestCases(IEnumerable <IXunitTestCase> testCases, IMessageSink executionMessageSink, ITestFrameworkExecutionOptions executionOptions)
 {
     TestInitalization.Initialize();
     try
     {
         using (XunitTestAssemblyRunner testAssemblyRunner = new XunitTestAssemblyRunner(TestAssembly, testCases, DiagnosticMessageSink, executionMessageSink, executionOptions))
         {
             RunSummary runSummary = await testAssemblyRunner.RunAsync();
         }
     }
     finally
     {
         TestInitalization.Terminate();
     }
 }
Exemplo n.º 3
0
        protected override void RunTestCases(IEnumerable <IXunitTestCase> testCases, IMessageSink executionMessageSink, ITestFrameworkExecutionOptions executionOptions)
        {
            var bddScopeAttribute = GetLightBddScopeAttribute();

            bddScopeAttribute?.SetUp();
            try
            {
                using (var assemblyRunner = new XunitTestAssemblyRunner(TestAssembly, testCases, DiagnosticMessageSink, executionMessageSink, executionOptions))
                    assemblyRunner.RunAsync().Wait();
            }
            finally
            {
                bddScopeAttribute?.TearDown();
            }
        }
 protected override async void RunTestCases(IEnumerable<IXunitTestCase> testCases, IMessageSink executionMessageSink, ITestFrameworkExecutionOptions executionOptions)
 {
     TestInitalization.Initialize();
     try
     {
         using (XunitTestAssemblyRunner testAssemblyRunner = new XunitTestAssemblyRunner(TestAssembly, testCases, DiagnosticMessageSink, executionMessageSink, executionOptions))
         {
             RunSummary runSummary = await testAssemblyRunner.RunAsync();
         }
     }
     finally
     {
         TestInitalization.Terminate();
     }
 }
 public RemoteTestAssemblyRunner(ITestAssembly testAssembly, IEnumerable <VsTestCaseBase> testCases, IMessageSink diagnosticMessageSink, IMessageSink executionMessageSink, ITestFrameworkExecutionOptions executionOptions, IMessageBus messageBus)
 {
     runner = new RealTestAssemblyRunner(testAssembly, testCases, diagnosticMessageSink, executionMessageSink, executionOptions, messageBus);
 }