Running Cucumber tests directly from executable jar

前端 未结 2 646
日久生厌
日久生厌 2020-12-05 07:52

I have a project with cucumber and maven also I am using the JUnit.

I am able to run and build my project successfully from Eclipse.

Now I want to run the t

2条回答
  •  盖世英雄少女心
    2020-12-05 08:34

    @SpringBootApplication
    public class Application {
    
        public static void main(final String[] args) throws Throwable {
            // SpringApplication.run(TestApplication.class, args);
            JUnitCore.main(CucumberTest.class.getCanonicalName());
        }
    
    }
    

提交回复
热议问题