Skip to content
This repository was archived by the owner on Jul 17, 2020. It is now read-only.

'But' keyword does not show up in report. #1002

Closed
aukevanleeuwen opened this issue Dec 20, 2017 · 3 comments
Closed

'But' keyword does not show up in report. #1002

aukevanleeuwen opened this issue Dec 20, 2017 · 3 comments

Comments

@aukevanleeuwen
Copy link

Summary

But keyword does not show up in report.

Expected Behavior

Steps with But keyword should end up in the report.

Current Behavior

Using the following formatter plugin for cucumber-jvm: https://github.com/sitture/cucumber-jvm-extentreport I don't see the steps using the keyword But in the report. It also fails with the following error: Something went wrong while trying to parse the Gherkin keyword for this step: java.lang.ClassNotFoundException: com.aventstack.extentreports.gherkin.model.But.

Although the error is probably from the cucumber-jvm plugin, the model is taken from this repository as far as I can see. It does seem to be lacking.


I've tried to quickly fix this in a PR, but I had a bunch of tests failing. I don't quite understand why but it appears that there are more tests running in my IDE as there are on the commandline. Have a look at the tests that are run with mvn, it doesn't include, for example, com.aventstack.extentreports.api.GherkinKeywordTests.

@aukevanleeuwen aukevanleeuwen changed the title But keyword does not show up in report. 'But' keyword does not show up in report. Dec 20, 2017
@karthikbhatnagar
Copy link

But is not a model keyword right now so you can add it by sending pull req.
https://github.com/anshooarora/extentreports-java/tree/master/src/main/java/com/aventstack/extentreports/gherkin/model

@anshooarora
Copy link
Owner

@aukevanleeuwen are you picking this feature? If not, I will start working on it.

@aukevanleeuwen
Copy link
Author

@anshooarora sorry I currently don't have time for this yet. I've looked into it a bit. Adding the class is not the issue, but I saw lots of test cases and javadoc that were mentioning the other classes (And, Given, ...) so that'll take a bit too much time at the moment.

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

No branches or pull requests

3 participants