com.github.mkolisnyk.cucumber.runner.parallel.CucumberRunnerThread Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cucumber-runner Show documentation
Show all versions of cucumber-runner Show documentation
The part of Cucumber Reports library which contains extended Cucumber-JVM runners and all relevant functionality.
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);
}
}