protected virtual void FindTestRunnerHttpPath() { string jsUnitRunnerPath = diskProvider.FindFile(webServer.WebRootDirectory, TestRunnerHtmlFileName); if (jsUnitRunnerPath == null) { throw new FileNotFoundException( "Could not find the JsUnit test runner.", TestRunnerHtmlFileName); } testRunnerPath = webServer.MakeHttpUrl(jsUnitRunnerPath); }
public bool RunAllTests() { results.Clear(); using (webServer.Start()) { foreach (string testFile in testFileReader) { string testFileUrl = webServer.MakeHttpUrl(testFile); if (!fixtureRunner.RunFixture(GetFixtureUrl(testFileUrl), FixtureTimeoutInMilliseconds)) { results.AddRange(fixtureRunner.Errors); } } } return(HasErrors); }
public string GetTestRunnerPath() { return(webServer.MakeHttpUrl(fullyQualifiedLocalPath)); }