Package org.apache.maven.surefire

Examples of org.apache.maven.surefire.Surefire


    ArrayList<String> excludes = getIncludesExcludes(p.getProperty("excludes"));

    ClassLoader testClassLoader = getBundleClassLoader(plugin);
    ClassLoader surefireClassLoader = Surefire.class.getClassLoader();

    Surefire surefire = new Surefire();

    List reports = new ArrayList();
    reports.add(new Object[] {
      "org.apache.maven.surefire.report.BriefConsoleReporter",
      new Object[] {
        Boolean.TRUE /*trimStackTrace*/
      }
    });
    reports.add(new Object[] {
      "org.apache.maven.surefire.report.XMLReporter",
      new Object[] {
        reportsDir,
        Boolean.TRUE /*trimStackTrace*/
      }
    });

    List tests = new ArrayList();
    tests.add(new Object[] {
      runner,
      new Object[] {
        testDir,
        includes,
        excludes
      }
    });

    return surefire.run(reports, tests, surefireClassLoader, testClassLoader, true /*failIfNoTests*/);
  }
 
View Full Code Here

TOP

Related Classes of org.apache.maven.surefire.Surefire

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.