Package com.google.jstestdriver.model

Examples of com.google.jstestdriver.model.NullPathPrefix


   */
  @Override
  public List<TestResult> runAllTests(Configuration config) {
    // TODO(corysmith): resolve how this should interact. It seems odd to resolve the server address twice, but we want to respect the configuration values.
    TestResultCollector testResultCollector = new TestResultCollector();
    String server = config.getServer(serverAddress, port, new NullPathPrefix());
    runConfigurationWithFlags(config, createFlagsArray("--tests", "all", "--server", server),
      new TestListenerModule(testResultCollector));
    return testResultCollector.getResults();
  }
View Full Code Here


   */
  @Override
  public List<TestResult> runTests(Configuration config, List<String> tests) {
    // TODO(corysmith): Refactor to avoid passing string flags.
    TestResultCollector testResultCollector = new TestResultCollector();
    String server = config.getServer(serverAddress, port, new NullPathPrefix());
    runConfigurationWithFlags(config,
      createFlagsArray("--server", server, "--tests", Joiner.on(",").join(tests)),
      new TestListenerModule(testResultCollector));
    return testResultCollector.getResults();
  }
View Full Code Here

  /* (non-Javadoc)
   * @see com.google.jstestdriver.IJsTestDriver#reset()
   */
  @Override
  public void reset() {
    String server = defaultConfiguration.getServer(serverAddress, port, new NullPathPrefix());
    // TODO(corysmith): Refactor to avoid passing string flags.
    runConfigurationWithFlags(defaultConfiguration, createFlagsArray("--reset""--server", server));
  }
View Full Code Here

   * @see com.google.jstestdriver.IJsTestDriver#getTestCasesFor(com.google.jstestdriver.config.Configuration)
   */
  @Override
  public List<TestCase> getTestCasesFor(Configuration config) {
    TestCaseCollector testCaseCollector = new TestCaseCollector();
    String server = config.getServer(serverAddress, port, new NullPathPrefix());
    // TODO(corysmith): Refactor to avoid passing string flags.
    runConfigurationWithFlags(config, createFlagsArray("--dryRunFor", "all", "--server", server), new TestListenerModule(testCaseCollector));
    return testCaseCollector.getTestCases();
  }
View Full Code Here

TOP

Related Classes of com.google.jstestdriver.model.NullPathPrefix

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.