All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.tatools.sunshine.testng.Sunshine Maven / Gradle / Ivy

There is a newer version: 0.7.0
Show newest version
package org.tatools.sunshine.testng;

import org.tatools.sunshine.core.RegexCondition;
import org.tatools.sunshine.core.Sun;
import org.tatools.sunshine.core.VerboseRegex;

/**
 * The {@link Sunshine} class is a main class to run TestNG tests.
 * 

If no arguments will be provided, then Sunshine will try to find TestNG tests in the CLASSPATH.

*

If an argument will be provided, then Sunshine will run TestNG with given argument. * The argument is a path to TestNG configuration file (XML or YAML).

* * @author Dmytro Serdiuk ([email protected]) * @version $Id: 545790fb568bd770cf90d17d61f25b688f0b2264 $ * @since 0.1 */ public final class Sunshine { public static void main(String[] args) { if (args != null && args.length > 0) { new Sun(new TestNGKernel(new PreparedTestNGSuite(args[0]))).shine(); } else { new Sun(new TestNGKernel(new LoadableTestNGSuite(new VerboseRegex(new RegexCondition())))).shine(); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy