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

com.github.mkolisnyk.cucumber.runner.CLIRunner Maven / Gradle / Ivy

Go to download

The part of Cucumber Reports library which contains extended Cucumber-JVM runners and all relevant functionality.

The newest version!
package com.github.mkolisnyk.cucumber.runner;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

import com.github.mkolisnyk.cucumber.runner.runtime.ExtendedRuntimeOptions;

import cucumber.api.cli.Main;

public final class CLIRunner {
    private CLIRunner() {
    }
    public static void main(String[] argv) throws Throwable {
        ExtendedRuntimeOptions[] extendedOptions = new ExtendedRuntimeOptions[1];
        List input = new ArrayList(Arrays.asList(argv));
        extendedOptions[0] = new ExtendedRuntimeOptions(input);
        byte exitstatus = Main.run(argv, Thread.currentThread().getContextClassLoader());
        ReportRunner.run(extendedOptions[0]);
        System.exit(exitstatus);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy