java maven testng_Maven项目(Cuth+TestNg+SeleJava]测试无法在MVN清洁安装上运行命令行上的测试...

我试图运行我的(Cuth+TestNg+SeleBavaJava)项目,它在CurcUnMax测试流道类上成功运行在Eclipse上,但是当我从MVN命令行运行时,用命令成功构建

mvn clean install

但它并没有开始执行任何测试。

我的项目结构

CMD

testrunner.java测试运行程序

package TestRunner;

//import org.junit.runner.RunWith;

import cucumber.api.CucumberOptions;

import cucumber.api.testng.AbstractTestNGCucumberTests;

//import cucumber.api.junit.Cucumber;

//@RunWith(Cucumber.class)

@CucumberOptions(features="src/test/resources/FeatureFiles", glue="StepDefinitions",tags= {"@FirstScenario,@SecondScenario"})

public class Runner extends AbstractTestNGCucumberTests {

//public class Runner {

}

我的POM.XML:

xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

4.0.0

Framework

AdvancedFramework

0.0.1-SNAPSHOT

jar

AdvancedFramework

http://maven.apache.org

UTF-8

6

1.6

org.apache.maven.plugins

maven-compiler-plugin

3.7.0

maven-plugin

org.apache.maven.plugins

maven-surefire-plugin

2.21.0

info.cukes

gherkin

2.12.2

provided

mysql

mysql-connector-java

8.0.11

org.seleniumhq.selenium

selenium-server

3.12.0

info.cukes

cucumber-java

1.2.5

junit

junit

3.8.1

test

info.cukes

cucumber-junit

1.2.5

test

info.cukes

cucumber-core

1.2.5

org.testng

testng

6.14.3

test

info.cukes

cucumber-testng

1.2.5

你可能感兴趣的:(java,maven,testng)