Forum Discussion

bogandy's avatar
bogandy
New Member
2 years ago

Java Jacoco Configuration for cucumber

I have a multi-module maven project and I have a separate project just for the tests. 

 

Project structure example: 

 

core-services

test-core-services

 

The core-services does not contain any test classes.

The test-core-services contains junit tests and cucumber tests. 

 

The issue that I have is when I run the cucumber tests, there is no coverage report from jacoco for those tests.

There is however coverage report for the junit tests.

 

Is there a special way I need to configure cucumber (or pass the jacoco options to it) ?

I don't want to run the cucumber tests through an application server as I've seen others do.

 

Thanks.

 

 

No RepliesBe the first to reply