Skip to content

Conversation

@yon-cuadrado
Copy link

Hello

I have modified your project including several modifications that I though that they would be very helpfull.

  1. I have included a new parameter "disableMetadataIfnotPresent", that if it has the value true removes the columns of the metadata from the features overview report.

  2. I have included a new parameter "showExecutionTime", that if it has the value true it shows the execution time in the features overview page and in the feature page.

  3. I have added a new parameter "expandStepsNotPassed", that if it has the value true it expands the steps of each scenario failed in the feeature detail page

  4. I have included a new parameter "featuresFolder", that can be used to pass the cucumber feature files used in the execution of the scenarios to the report.
    With this parameter the scenarios outline are shown in a different way. Instead of creating one for each row of the scenario outline, an scenario with all the scenarios joined is created. This scenario has the table with
    the examples of the scenarios and if one of the rows of the table is clicked you can access the information of the execution of this row of the scenario outline.
    In the tests of the report I have included an example in the feature Scenarios outline.

  5. Finally I have included a new parameter "navigateToFeatureIfThereIsOnlyOne", that if the report is going to be opened in a browser it opens it and navigates to the feature page in case there is only one feature.

Please let me know what do you think of these changes.
Regards

@wswebcreation
Copy link
Collaborator

Hi @jontxo

Tnx for the PR, looks like a major job you did there. I'll take a look at it this week. Now need to get some rest 😁

@coveralls
Copy link

Coverage Status

Coverage decreased (-3.6%) to 94.762% when pulling c5553b3 on jontxo:master into be8c53c on wswebcreation:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-3.6%) to 94.762% when pulling 50e5126 on jontxo:master into be8c53c on wswebcreation:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-3.6%) to 94.762% when pulling 709978e on jontxo:master into be8c53c on wswebcreation:master.

@wswebcreation wswebcreation self-requested a review November 19, 2017 17:37
@wswebcreation wswebcreation self-assigned this Nov 19, 2017
@wswebcreation
Copy link
Collaborator

Hi @jontxo

I've taken a quick look into it (couldn't let it go ;-)). First of all a nice job you did there. There are are a few points I really like and a few points I've got my doubts about.
Let me start by saying I'm really enthusiastic about the way you picked this up.There are some nice additions (features and codewise) I really like, but there are also some things I don't like so I don't want to discourage you with the feedback below.

The points I really like are:

I have included a new parameter "disableMetadataIfnotPresent", that if it has the value true removes the columns of the metadata from the features overview report.

Nice addition, I do think this shouldn't be a parameter, but should be default.

I have added a new parameter "expandStepsNotPassed", that if it has the value true it expands the steps of each scenario failed in the feeature detail page

Nice addition, I do think this shouldn't be a parameter, but should be default.

The points I've got my doubts with:

I have included a new parameter "showExecutionTime", that if it has the value true it shows the execution time in the features overview page and in the feature page.

Personally I don't like to show this because in my opinion it's not representing the real situation / time. It's also always misinterpreted (at least what I've seen in projects). Times are many times counted to a total time but it could be that it was a parallel execution, it doesn't represent the total time, only the step execution time (so no spinning up the browser). The time doesn't say anything about the actual stuff that has been done in a step and so on. I still prefer not showing times in the report.

I have included a new parameter "featuresFolder", that can be used to pass the cucumber feature files used in the execution of the scenarios to the report.

I also have doubts about the use / advantage of this feature. I don't see it, sorry

Finally I have included a new parameter "navigateToFeatureIfThereIsOnlyOne"

It's a nice feature, but I doubt if this will be used a lot. So in my opinion there is some code implemented that makes it "more complex" but doesn't have many advantages looking at the time it is used.

The new layout

The olds layout was very simple. The new layout gives me a little bit the shivers, I don't like it. Lines are to hard and so on, sorry.

I think it's better to split some features into small PR's, that makes it also easier to review. I need to think the coming days about how I'm going further with this.

But again, tnx for the hard work!!!

@yon-cuadrado
Copy link
Author

yon-cuadrado commented Nov 22, 2017 via email

@wswebcreation
Copy link
Collaborator

I'm going to close this PR for now. Let's update the project in smaller steps like with the custom metadata.

I'm really thankful for all your work!!

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

Successfully merging this pull request may close these issues.

3 participants