static FilteringTestSuite() { logger_.SetLogHandler(new NunitLogHandler()); logger_.Log(TraceLevel.Notice, Stage.TestFramework, new { TRAVIS_TAG = Environment.GetEnvironmentVariable("TRAVIS_TAG") ?? "<null>", IS_FULL_COVERAGE, SendToSandbox = TestResultReportSummary.SendToSandbox() }); if (!IS_FULL_COVERAGE) { Assembly asm = Assembly.GetExecutingAssembly(); string asmName = asm.GetName().Name; excludedTestsListFilename_ = "passed_tests_" + asmName + ".txt"; Stream includedTestsListStream = CommonUtils.ReadResourceStream(asmName + ".Resources.IncludedTests.txt"); logger_.Log(TraceLevel.Notice, Stage.TestFramework, new { message = "Reading regression list from embedded resource", resourceName = $"{asmName}.Resources.IncludedTests.txt" }); if (includedTestsListStream != null) { includedTestsList_ = new HashSet <string>(CommonUtils.ReadStreamAsLines(includedTestsListStream)); } else { includedTestsList_ = null; } if (RUNS_ON_CI && excludedTestsListFilename_ != null && File.Exists(excludedTestsListFilename_)) { logger_.Log(TraceLevel.Notice, Stage.TestFramework, new { message = "Reading exclusion list from file and filtering regression list", excludedTestsListFilename_ }); excludedTestsList_ = new HashSet <string>(File.ReadAllLines(excludedTestsListFilename_)); includedTestsList_?.RemoveWhere(item => excludedTestsList_.Contains(item)); } } }