Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OC-51 Cucumber test methods could not able to recognize #51

Open
marek-parfianowicz opened this issue Dec 16, 2019 · 2 comments
Open

OC-51 Cucumber test methods could not able to recognize #51

marek-parfianowicz opened this issue Dec 16, 2019 · 2 comments

Comments

@marek-parfianowicz
Copy link
Member

Nikhil Nikhil created an issue 2018-01-26
I am using project where we are using Cucumber framework to run tests.

By using following command I able to successfully create OpenClover reports. Open Clover able to detect test classes but could not able to find test methods.

Using Cucumber Test Integration with Spring boot with @SpringBootTest.

That's why Test Results tab giving me No test results could be found. Please ensure that you have instrumented your unit tests correctly.

MVN Command to create clover report.

mvn clean clover:setup test clover:aggregate clover:clover -B -U -DargLine="-Dmanage.containers=false -Dcom.datastax.driver.USE_NATIVE_CLOCK=false"

@marek-parfianowicz
Copy link
Member Author

Original report: https://bitbucket.org/openclover/clover/issues/51

@marek-parfianowicz
Copy link
Member Author

Do you see Cucumber test classes on the "application code" or the "test code" tabs in the HTML report?

Do you see any code coverage collected for them?

Do you see any per-test code coverage for them (click on the left page margin to open a pop up)?

Do you see any test data on the "Test results" tab?

Did you try to use test results from external XML files? There is such option in Ant task / clover:clover Maven goal.

Did you try configuring custom test patterns? See Clover setup task for more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant