Ask a Question

How do I have one cucumber runner invoke another cucumber runner?

mikemears
New Member

How do I have one cucumber runner invoke another cucumber runner?

I'm trying to set up a cucumber runner to invoke two other cucumber runners. I don't want it to run in parallel. How do I do that?

The "master":

package com.vanguard.advice.cpc.webservice.cucumber;
import com.vanguard.shared.CucumberRunnerUtil;
import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;
import org.junit.runner.RunWith;
@RunWith(Cucumber.class)
@CucumberOptions(strict = true,
	features = "src/test/resources/com/vanguard/advice/cpc/webservice/integration",
	tags = { "not @RevalidatePeriodic", "not @adhoc", "not @inprogress", "not @performance", "not @revalidation", "not @defect", "not @needsattention",
			"not @infeasible", "not @ignore", "not @IntegrationTest", "not @OldRequirement", "not @OldInvestorShareClassRequirement",
			"not @RevertWashSaleLogicIfIIG", "not @NeedToReview" },
	plugin = { "pretty",
			CucumberRunnerUtil.CukeFormat.CD_HTML_REPORT_UNIT,
			CucumberRunnerUtil.CukeFormat.CD_JSON_RESULTS_UNIT + "unit-test-reports.json",
            CucumberRunnerUtil.CukeFormat.CD_JUNIT_XML_REPORT_UNIT + "regression-cuke-test-reports.xml" },
	glue = { "com.vanguard.advice.cpc.webservice.integration.cukes.stepdefs" })
public class RunRegressionCukeTest {
}

And here is one of the two that I'm trying to call from the master:

package com.vanguard.advice.cpc.webservice.cucumber;
import org.junit.runner.RunWith;
import com.vanguard.shared.CucumberRunnerUtil;
import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;
@RunWith(Cucumber.class)
@CucumberOptions(strict = true,
	features = "src/test/resources/com/vanguard/advice/cpc/webservice/integration",
	tags = { "not @RevalidatePeriodic", "not @adhoc", "not @inprogress", "not @performance", "not @revalidation", "not @defect", "not @needsattention",
			"not @infeasible", "not @ignore", "not @IntegrationTest", "not @OldRequirement", "not @OldInvestorShareClassRequirement",
			"not @RevertWashSaleLogicIfIIG", "not @NeedToReview" },
	plugin = { "pretty",
			CucumberRunnerUtil.CukeFormat.CD_HTML_REPORT_UNIT,
			CucumberRunnerUtil.CukeFormat.CD_JSON_RESULTS_UNIT + "unit-test-reports.json",
            CucumberRunnerUtil.CukeFormat.CD_JUNIT_XML_REPORT_UNIT + "regression-cuke-test-reports.xml" },
	glue = { "com.vanguard.advice.cpc.webservice.integration.cukes.stepdefs",
			 "com.vanguard.advice.cpc.webservice.integration.cukes.inputnoconversion"})
public class RunRegressionCukeFundNumberTest {
}

 

 

cancel
Showing results for 
Search instead for 
Did you mean: