Package org.moyrax.reporting

Examples of org.moyrax.reporting.TestSuite


    HtmlElement element = page.getHtmlElementById("qunit-tests");

    List<HtmlElement> testResults = element.getElementsByTagName("li");

    TestSuite currentModule = null;

    for (HtmlElement result : testResults) {
      Matcher matcher = summary.matcher(result.asText());

      List<HtmlElement> testOutput = result.getElementsByTagName("li");

      if (matcher.lookingAt()) {
        TestSuite module = getModule(matcher);
        TestCase test = buildTest(matcher);

        if (currentModule != module) {
          if (currentModule != null) {
            currentModule.done();
          }

          currentModule = module;
        }

        for (HtmlElement outputLine : testOutput) {
          test.print(outputLine.getFirstChild().asXml());
        }

        module.addTest(test);
      }
    }
  }
View Full Code Here


    if (moduleName.endsWith(":")) {
      moduleName = StringUtils.substringBeforeLast(moduleName, ":");
    }

    if (!modules.containsKey(moduleName)) {
      modules.put(moduleName, new TestSuite(moduleName));
    }

    return modules.get(moduleName);
  }
View Full Code Here

TOP

Related Classes of org.moyrax.reporting.TestSuite

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.