Skip to content

test: Fix cucumber variant assertions to include inherited properties#394

Merged
acoulton merged 1 commit intoBehat:masterfrom
acoulton:test-assert-inherited-props
Nov 6, 2025
Merged

test: Fix cucumber variant assertions to include inherited properties#394
acoulton merged 1 commit intoBehat:masterfrom
acoulton:test-assert-inherited-props

Conversation

@acoulton
Copy link
Contributor

@acoulton acoulton commented Nov 6, 2025

Most of our nodes are standalone classes, but ExampleTableNode inherits from TableNode and the actual table content is a private property in the parent class. This meant that our dumped YAML data for assertions did not capture the example table content.

I built this commit off the original (based on 4.14.0) and then patched it onto the current version - only one original feature was affected.

Most of our nodes are standalone classes, but ExampleTableNode inherits
from TableNode and the actual `table` content is a private property in
the parent class. This meant that our dumped YAML data for assertions
did not capture the example table content.

I built this commit off the original (based on 4.14.0) and then patched
it onto the current version - only one original feature was affected.
@codecov
Copy link

codecov bot commented Nov 6, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.86%. Comparing base (a269823) to head (c7dd750).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##             master     #394   +/-   ##
=========================================
  Coverage     95.86%   95.86%           
  Complexity      669      669           
=========================================
  Files            44       44           
  Lines          1934     1934           
=========================================
  Hits           1854     1854           
  Misses           80       80           
Flag Coverage Δ
php8.1 95.86% <ø> (ø)
php8.1--with=symfony/yaml:^5.4 95.86% <ø> (ø)
php8.1--with=symfony/yaml:^6.4 95.86% <ø> (ø)
php8.2 95.86% <ø> (ø)
php8.3 95.86% <ø> (ø)
php8.4 95.86% <ø> (ø)
php8.5 95.86% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

17:
- color
18:
- "\_ \tred\_ \t"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm already aware of the padding variation - there's a skipped cucumber example for it but we didn't have an issue so have opened #395

@acoulton acoulton requested a review from stof November 6, 2025 10:20
@acoulton acoulton merged commit 9dec914 into Behat:master Nov 6, 2025
11 checks passed
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.

2 participants