Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
 public string GetTestRunnerPath()
 {
     return(webServer.MakeHttpUrl(fullyQualifiedLocalPath));
 }