示例#1
0
        public static void Initialize(TestContext context)
        {
            var testRunner = new QUnitParserFactory().CreateParser(5000, "htmlunit");

            var tests = global::NQUnit.NQUnit.GetTests(testRunner, @"file:///M:/Product/01%20-%20RED%20DEVELOPMENT/Test_Web/JavaScript%20Tests/run.html?test=js/tests/Salamander.Css.js");

            MSTestHelpers.WriteResultsToXmlFile(context, tests);
        }
示例#2
0
 public IEnumerable<QUnitTest> GetQUnitTests()
 {
     var testsDirectory = Path.Combine(Environment.CurrentDirectory, "JavaScriptTests");
     var watinTestRunner = new QUnitParserFactory().CreateParser(500, "watin");
     return global::NQUnit.NQUnit.GetTests(watinTestRunner,Directory.GetFiles(testsDirectory, "*.html"));
 }