第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

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

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

素胚勾勒不出你 2023-08-04 15:02:58
目前,當(dāng)嘗試通過命令行窗口運(yùn)行測試時(shí),以下命令可以工作,但是自從從 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但是,直接從運(yùn)行程序類運(yùn)行測試是可行的: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貢獻(xiàn)1874條經(jīng)驗(yàn) 獲得超12個(gè)贊

import io.cucumber.junit.CucumberOptions;

import io.cucumber.junit.Cucumber;

import io.cucumber.testng.AbstractTestNGCucumberTests;

import org.junit.runner.RunWith;

您正在混合 JUnit 和 TestNG。您應(yīng)該在單個(gè)類中使用 JUnit 或 TestNG。不是都。


查看完整回答
反對(duì) 回復(fù) 2023-08-04
  • 1 回答
  • 0 關(guān)注
  • 212 瀏覽

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)