Run() public method

public Run ( ) : bool
return bool
 public static void RunFiles()
 {
     var sourceFile = Path.Combine("JasmineTests", "WithHtml", "Scripts", "calculator.js");
     var sourceFiles = new[] {sourceFile};
     var testFile = Path.Combine("JasmineTests", "WithHtml", "ScriptTests", "calculatorSumPassSpec.js");
     var testFiles = new[] {testFile};
     test = RunTestHelper.RunTestWithJSFiles(sourceFiles, testFiles);
     runSucceeded = test.Run();
 }
コード例 #2
0
 public static void RunFiles()
 {
     var sourceFile = Path.Combine(RunTestHelper.GetJasmineTestDirLocation("WithHtml"), "ScriptTests", "WrongSyntax.js");
     var sourceFiles = new[] {sourceFile};
     var testFile = Path.Combine(RunTestHelper.GetJasmineTestDirLocation("WithHtml"), "ScriptTests", "WrongSyntax.js");
     var testFiles = new[] {testFile};
     test = RunTestHelper.RunTestWithJSFiles(sourceFiles, testFiles);
     runSucceeded = test.Run();
 }
コード例 #3
0
 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);
 }
コード例 #4
0
 public static void RunFiles()
 {
     var configFile = Path.Combine(RunTestHelper.GetJasmineTestDirLocation("WithConfig"), "config.js");
     test = RunTestHelper.RunTestWithConfig(configFile);
     runSucceeded = test.Run();
 }
コード例 #5
0
 public static void RunFiles()
 {
     test = RunTestHelper.RunTestWithDefault(RunTestHelper.GetJasmineTestDirLocation("WithHtml"));
     runSucceeded = test.Run();
 }