public void GetTestCases() { var testCases = TestSystem.GetTestCaseIds(); Assert.That(testCases.Count(), Is.GreaterThanOrEqualTo(1)); Assert.That(testCases.FirstOrDefault(_ => _ == "Pipeline\\Diff"), Is.Not.Null); }
public IEnumerable <TestCaseResult> RunTests(IEnumerable <ITestSession> customSessions, IDictionary <string, string> options) { var testCases = _testStorage.GetTestCaseIds().Select(_ => _testStorage.GetTestCase(_)); testCases = _testCasesPreProcessors.Aggregate(testCases, (acc, p) => p.Execute(acc, options)); using (var testSession = new TestSession(customSessions, _testCaseProcessorFactory, _testCaseLoggerFactory, _loggerFactory, options, _schedule, _testCaseContextFactory)) { testSession.Schedule(testCases, options.GetWorkersCount()); return(testSession.Results); } }
public async Task <IReadOnlyCollection <TestCaseExecutionResult> > RunTestsAsync(ITestSession customSession, IDictionary <string, string> options) { //discover var testCases = _testStorage.GetTestCaseIds().Select(id => _testStorage.GetTestCase(id)); //filter testCases = FilterByTags(testCases, options); //order if (_priorityProvider != null) { testCases = testCases.OrderBy(_priorityProvider.GetPriority); } //execute using (var testSession = new TestSession(_pipelineActionFactory, customSession, _loggerFactory, options, _criticalSectionTokensProvider)) { await testSession.ExecuteAsync(testCases, options.GetWorkersCount()); return(testSession.Results); } }