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
Possibility to not show "Before" and "After" steps in report for each scenario? #282
Comments
Show me your report so I can understand the problem |
I have like 20 different .java test classes which are "glued" together. If execute my tests for just 1 scenario, all 10 @before and @after steps are shown for the scenario. In the report it looks something like this for EVERY scenario: Feature: Search I have to use @before and @after for some of my classes, because I use Cucumber together with Selenium. |
I think your case is quite specific and most users have 1-3 before/after cases and they wish to see them (in case of failure). I wonder what would be the compromise for all users... |
You are more than welcome to prepare patch for this feature. It should not be a rocket science and we all will be happy about it! |
I have a fix for this but am struggling to build a custom jenkins .hpi plugin. If anyone could help me get my fix into a custom cucumber-jvm reports plugin I'd appreciate it. Here is my
|
Check ..travis file which has build command that produce hpi file |
@lilshrumpmerp Thank you, that looks good, but where do I have to implement this to take effect? |
First, thank you for the great project and the effort put in this :) I would like to add to this discussion that before and after are mostly technical details. An analyst or a product owner would rarely want to see how we prepare the system or what we do as clean up procedures. Also, I think this is quite obvious as the steps displayed in the report are only method names that most of the time does not make sense to the non-developer. So 👍 for providing an option to hide them. In my opinion this should also be the default. |
I think this is good idea but I don't know when it will be scheduled and fixed. I guess within 2-3 releases. |
As soon as we get this, I'm happy because at the moment I have to use an older version because of this. |
Here we have some PoC for similar feature for scenarios https://cloud.githubusercontent.com/assets/9612911/14655017/a38477ec-0680-11e6-905e-f2f922f09f07.png - the plan is to have the same for hooks. Let me know if this would be accepted |
@damianszczepanik I have written java program to run my system test cases to test my API. The inputs of an API and expected output are defined in excel sheet. I read the data from excel and run against my API. I started using your library to build Feature object so that i can produce reports. I am much worried about the line number required to be mentioned in Step and Scenario object. Does it really used by the library to publish reports? |
how to remove the before and after hook in the cucumber extent reports |
Hi,
I just included the newest version and have seen, that the "Before" and "After" methods are shown in the report.
This blows up my reports by a lot. Especially, because all of them are always shown for each scenario.
Would it be possible to not show them at all?
The text was updated successfully, but these errors were encountered: