pytest-bdd icon indicating copy to clipboard operation
pytest-bdd copied to clipboard

Fix gherkin terminal report colouring

Open hristiy4n opened this issue 5 years ago • 13 comments
trafficstars

Add a extra hook to mark steps as skipped, which will allow to distinguish if a step is skipped or not and therefor the output colouring could be done properly.

This PR closes #214 #299 #248

hristiy4n avatar Jun 20 '20 14:06 hristiy4n

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.06 :tada:

Comparison is base (d45c543) 95.40% compared to head (4533677) 95.47%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #372      +/-   ##
==========================================
+ Coverage   95.40%   95.47%   +0.06%     
==========================================
  Files          49       49              
  Lines        1764     1789      +25     
  Branches      193      196       +3     
==========================================
+ Hits         1683     1708      +25     
  Misses         53       53              
  Partials       28       28              
Impacted Files Coverage Δ
src/pytest_bdd/gherkin_terminal_reporter.py 81.81% <100.00%> (+0.27%) :arrow_up:
src/pytest_bdd/hooks.py 100.00% <100.00%> (ø)
src/pytest_bdd/parser.py 98.64% <100.00%> (+0.01%) :arrow_up:
src/pytest_bdd/plugin.py 98.21% <100.00%> (+0.10%) :arrow_up:
src/pytest_bdd/reporting.py 90.76% <100.00%> (+1.88%) :arrow_up:
src/pytest_bdd/scenario.py 93.15% <100.00%> (+0.14%) :arrow_up:
tests/feature/test_report.py 77.50% <100.00%> (+1.82%) :arrow_up:

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

codecov[bot] avatar Jun 24 '20 18:06 codecov[bot]

any update on this, please.

JagadeeshJayachandran avatar Sep 13 '21 13:09 JagadeeshJayachandran

Merge, please?

moorchegue avatar May 22 '23 15:05 moorchegue

@hristiy4n Could you rebase your code and submit it again ? I'd love to have this feature.

Warzroth avatar Jun 16 '23 08:06 Warzroth

I rebased the MR, lets hope it gets merged this time.

hristiy4n avatar Jun 18 '23 11:06 hristiy4n

@youtux Could you please review this ? I'd like to avoid it to fall back into oblivion.

Warzroth avatar Jun 21 '23 12:06 Warzroth

@hristiy4n Could you ask for another reviewer ?

Warzroth avatar Jun 30 '23 13:06 Warzroth

@hristiy4n ?

Warzroth avatar Jul 10 '23 12:07 Warzroth

@hristiy4n Could you ask for another reviewer ?

I re-requested the review from @olegpidsadnyi. I do not think I have the permissions to request a review from someone else.

hristiy4n avatar Jul 10 '23 12:07 hristiy4n

@olegpidsadnyi @youtux Sorry for the brute forcing, but could you please review this please ?

Warzroth avatar Jul 10 '23 14:07 Warzroth

@olegpidsadnyi @youtux Sorry for the brute forcing, but could you please review this please ?

I looked into the cucumber spec, I don't see any magic tag that skips the scenario from the scenario definition itself. So the cucumber is deselecting them from the command line by negating the tags. It could be any tag. Pytest has similar CLI where you can pass the tags and we could utilize the pytest collection mechanism and hooks. Is this PR introducing some magic tag? Do we delegate the skipping to the scenario execution itself instead of the pytest collection and run mechanism? How is it in line with pytest and with the cucumber?

olegpidsadnyi avatar Jul 10 '23 14:07 olegpidsadnyi

@hristiy4n ?

Warzroth avatar Jul 21 '23 07:07 Warzroth

@hristiy4n ?

Warzroth avatar Aug 02 '23 15:08 Warzroth