1

这是我的带有黄瓜的 Junit runner 文件。我想在这里调用listners,但不知道该怎么做。

package com.olmgroup.runner;

import org.junit.runner.RunWith;

import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;

@RunWith(Cucumber.class)
@CucumberOptions(format={"pretty","junit:reports/junit/junit.xml",      
 "html:reports/html", 


 "json:reports/json/integration_report.json","junit:reports/xml/cucumber.xml"}, 
                      features="src/test/resources/integration.feature", dryRun=false, glue="com.olmgroup.script",
                      tags="@IntegrationTesting")

public class IntegrationRunner{

}
4

0 回答 0