Package limelight

Source Code of limelight.TestRunner

//- Copyright © 2008-2011 8th Light, Inc. All Rights Reserved.
//- Limelight and all included source files are distributed under terms of the MIT License.

package limelight;

import limelight.io.FileSystem;
import org.junit.internal.RealSystem;
import org.junit.runner.JUnitCore;

public class TestRunner
{
  public static void main(String[] args) throws Exception
  {
    String[] classNames = loadClassNames();
    JUnitCore.runMainAndExit(new RealSystem(), classNames);
  }

  private static String[] loadClassNames()
  {
    final FileSystem fs = new FileSystem();
    if(!fs.exists(".testClasses"))
      throw new RuntimeException(".testClasses file is missing");

    final String classesContent = fs.readTextFile(".testClasses");
    return classesContent.split("(\r\n|\n)");
  }
}
TOP

Related Classes of limelight.TestRunner

TOP
Copyright © 2018 www.massapi.com. 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.