Exemple #1
0
        public void Will_run_multiple_files_and_aggregate_results()
        {
            var testRunner = TestRunner.Create();

            ChutzpahTracer.Enabled = true;
            ChutzpahTracer.AddConsoleListener();
            var tests = new List <string>
            {
                @"JS\Test\basic-qunit.js",
                @"JS\Test\basic-qunit.html"
            };
            TestCaseSummary result = testRunner.RunTests(tests, new ExceptionThrowingRunnerCallback());

            Assert.Equal(2, result.FailedCount);
            Assert.Equal(6, result.PassedCount);
            Assert.Equal(8, result.TotalCount);
        }