difference between runner class and maven

Solutions on MaxInterview for difference between runner class and maven by the best coders in the world

showing results for - "difference between runner class and maven"
Leonardo
17 Oct 2020
1What is the different between running a
2test from maven and cucumber test runner class?
3
4In my project I use cucumber + Junit. to
5generate reports, I use maven-cucumber-reporting.
6This report is only generated when 
7I run my test as a maven lifecycle verify.
8Becuase this is how it works according to
9its configuration. 
10So if I run my test from runner file, 
11it does not trigger the maven lifecycle.
12It only runs that test. In order to run
13any maven lifecycle we have to run 
14as a maven command which starts with 'mvn'.