亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

黃瓜選項(命令行)不再適用于較新版本的黃瓜(io.cucumber)?

黃瓜選項(命令行)不再適用于較新版本的黃瓜(io.cucumber)?

素胚勾勒不出你 2023-08-04 15:02:58
目前,當嘗試通過命令行窗口運行測試時,以下命令可以工作,但是自從從 info.cakes 更新到 io.cucumber 后,它似乎不再工作了?mvn test -Dcucumber.options="--tags @login"異常消息:Sep 17, 2019 5:18:37 PM cucumber.runtime.FeaturePathFeatureSupplier getWARNING: No features found at classpath:runners但是,直接從運行程序類運行測試是可行的:package runners;import io.cucumber.junit.CucumberOptions;import io.cucumber.junit.Cucumber;import io.cucumber.testng.AbstractTestNGCucumberTests;import org.junit.runner.RunWith;@RunWith(Cucumber.class)@CucumberOptions(features = { "classpath:features" }, glue = {        "stepDefinitions"}, monochrome = true, tags = {"@login"}, dryRun = false,        plugin = { "pretty", "html:target/cucumber", "json:target/cucumber.json"})    public class MainRunner extends AbstractTestNGCucumberTests {}黃瓜版本:<cucumber.version>4.7.2</cucumber.version>
查看完整描述

1 回答

?
HUWWW

TA貢獻1874條經驗 獲得超12個贊

import io.cucumber.junit.CucumberOptions;

import io.cucumber.junit.Cucumber;

import io.cucumber.testng.AbstractTestNGCucumberTests;

import org.junit.runner.RunWith;

您正在混合 JUnit 和 TestNG。您應該在單個類中使用 JUnit 或 TestNG。不是都。


查看完整回答
反對 回復 2023-08-04
  • 1 回答
  • 0 關注
  • 237 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號