FileDocCategorySizeDatePackage
Main.javaAPI DocAndroid 1.5 API1682Wed May 06 22:41:04 BST 2009com.google.coretests

Main

public class Main extends Object
Main class to run the core tests.

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

        if (args.length == 0) {
            System.out.println("Running all tests...");
            TestRunner.run(AllTests.suite());
        } else if ("--stats".equals(args[0])) {
            // Delegate to new stats test runner
            String[] args2 = new String[args.length - 1];
            System.arraycopy(args, 1, args2, 0, args2.length);
            
            if (args2.length == 0) {
                System.out.println("Running all tests with stats...");
                StatTestRunner.run(AllTests.suite());
            } else {
                System.out.println("Running selected tests with stats...");
                StatTestRunner.main(args2);
            }
        } else {
            System.out.println("Running selected tests...");
            CoreTestRunner.main(args);
        }
        
        Runtime.getRuntime().halt(0);