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

com.github.mkolisnyk.cucumber.runner.parallel.CucumberRunnerThread Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.3.5
Show newest version
package com.github.mkolisnyk.cucumber.runner.parallel;

import java.util.Date;

import org.junit.runner.notification.RunNotifier;

import com.github.mkolisnyk.cucumber.runner.ExtendedCucumber;

public class CucumberRunnerThread implements Runnable {
    private ExtendedCucumber runner;
    private RunNotifier notifier;
    private long runId = 0;

    public CucumberRunnerThread(ExtendedCucumber runnerValue, RunNotifier notifierValue) {
        super();
        this.runner = runnerValue;
        this.notifier = notifierValue;
        this.runId = new Date().getTime();
    }

    @Override
    public void run() {
        String prefix = "[thread" + this.runId + "] ";
        System.out.println("Running thread: " + prefix);
        runner.run(notifier);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy