Exemplo n.º 1
0
        public static void RunFiles()
        {
            var sourceFile  = Path.Combine(GetBaseDirectory(), "TypeScriptTests", "WithHtml", "Scripts", "calculator.ts");
            var sourceFiles = new[] { sourceFile };
            var testFile    = Path.Combine(GetBaseDirectory(), "TypeScriptTests", "WithHtml", "ScriptTests", "calculatorSumPassSpec.ts");
            var testFiles   = new[] { testFile };

            test         = RunTestHelper.RunTestWithJSFiles(sourceFiles, testFiles);
            runSucceeded = test.Run();
        }
Exemplo n.º 2
0
        public static void RunFiles()
        {
            var sourceFile  = Path.Combine(RunTestHelper.GetJasmineTestDirLocation("WithHtml"), "Scripts", "calculator.js");
            var sourceFiles = new[] { sourceFile };
            var testFile    = Path.Combine(RunTestHelper.GetJasmineTestDirLocation("WithHtml"), "ScriptTests", "calculatorSumPassSpec.js");
            var testFiles   = new[] { testFile };

            test         = RunTestHelper.RunTestWithJSFiles(sourceFiles, testFiles);
            runSucceeded = test.Run();
        }
        public static void RunFiles()
        {
            var sourceFile  = Path.Combine(RunTestHelper.GetJasmineTestDirLocation("WithHtml"), "Scripts", "calculator.coffee");
            var sourceFiles = new[] { sourceFile };
            var testFile    = Path.Combine(RunTestHelper.GetJasmineTestDirLocation("WithHtml"), "ScriptTests", "calculatorSumPassSpec.js");
            var testFiles   = new[] { testFile };

            test     = RunTestHelper.RunTestWithJSFiles(sourceFiles, testFiles);
            toolsDir = test.Tools.Environment.GetToolsDir();
            CleanupToolsDir();
            runSucceeded = test.Run();
            test.PhantomJS.Dispose();
            toolsDirInfo = new DirectoryInfo(toolsDir);
        }