org.tatools.sunshine.testng.SunshineTestNG Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sunshine-testng Show documentation
Show all versions of sunshine-testng Show documentation
"The package is Sunshine's adapter for TestNG tests runner."
package org.tatools.sunshine.testng;
import org.testng.ISuite;
import org.testng.TestNG;
import java.util.List;
/**
* The {@link SunshineTestNG} class is the default configuration of TestNG defined for Sunshine.
*
* @author Dmytro Serdiuk ([email protected])
* @version $Id: b460d8e9135bed573f56917642ba5335313ef5c6 $
* @since 0.2
*/
final class SunshineTestNG extends TestNG {
private final List database;
/**
* Constructs the instance of TestNG without default listeners and with 0 verbose mode (no logs). All executed
* suites will be saved to a given list.
*
* @param suitesHolder the list to store suites
*/
SunshineTestNG(List suitesHolder) {
super(false);
this.database = suitesHolder;
this.setVerbose(0);
}
@Override
protected List runSuites() {
final List suites = super.runSuites();
this.database.addAll(suites);
return suites;
}
}