示例#1
0
 internal ProcessTestExecutor(TestExecutionOptions options)
 {
     Options = options;
 }
示例#2
0
文件: Program.cs 项目: rgani/roslyn
        private static ITestExecutor CreateTestExecutor(Options options)
        {
            var testExecutionOptions = new TestExecutionOptions(
                xunitPath: options.XunitPath,
                trait: options.Trait,
                noTrait: options.NoTrait,
                useHtml: options.UseHtml,
                test64: options.Test64);
            var processTestExecutor = new ProcessTestExecutor(testExecutionOptions);
            if (!options.UseCachedResults)
            {
                return processTestExecutor;
            }

            // The web caching layer is still being worked on.  For now want to limit it to Roslyn developers
            // and Jenkins runs by default until we work on this a bit more.  Anyone reading this who wants
            // to try it out should feel free to opt into this. 
            IDataStorage dataStorage = new LocalDataStorage();
            if (CanUseWebStorage())
            {
                dataStorage = new WebDataStorage();
            }

            return new CachingTestExecutor(testExecutionOptions, processTestExecutor, dataStorage);
        }
示例#3
0
 internal ProcessTestExecutor(TestExecutionOptions options)
 {
     _options = options;
 }