Example #1
0
        /// <summary>
        /// Method, which calls into the Test File Setup helper class to download and layout test assemblies on disk
        /// </summary>
        /// <param name="runAll">Specifies whether all tests available in the test list should be run</param>
        private static void SetupTests(bool runAll = false)
        {
            testFileHelper = new TestFileHelper();

            if (!Directory.Exists(outputDir))
            {
                Directory.CreateDirectory(outputDir);
            }

            // If the --clean switch has been specified delete existing assemblies
            if (cleanTestBuild)
            {
                testFileHelper.CleanBuild(outputDir);
            }

            // Map test names to their definitions
            Dictionary <string, XUnitTestAssembly> testAssemblyDefinitions = testFileHelper.DeserializeTestJson(testListPath);

            testFileHelper.SetupTests(testUrl, outputDir, testAssemblyDefinitions, runAll).Wait();
        }