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

cucumber.api.testng.AbstractTestNGCucumberTests Maven / Gradle / Ivy

package cucumber.api.testng;

import org.testng.IHookCallBack;
import org.testng.IHookable;
import org.testng.ITestResult;
import org.testng.annotations.Test;

import java.io.IOException;

public abstract class AbstractTestNGCucumberTests implements IHookable {

    @Test(groups = "cucumber", description = "Runs Cucumber Features")
    public void run_cukes() throws IOException {
        new TestNGCucumberRunner(getClass()).runCukes();
    }

    @Override
    public void run(IHookCallBack iHookCallBack, ITestResult iTestResult) {
        iHookCallBack.runTestMethod(iTestResult);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy