Skip to content

Conversation

@carlos-granados
Copy link
Contributor

These tests also re-use the fixtures in the Rerun folder. The context file has been modified a little so we have needed to modify existing tests a little bit as well

@carlos-granados carlos-granados force-pushed the refactor-rerun-multiple-suite-tests branch from e5785a6 to 485bbc2 Compare December 9, 2025 15:06
@carlos-granados carlos-granados changed the title Refactor rerun multiple suite tests refactor: convert rerun multiple suite tests to use fixtures Dec 9, 2025
Scenario: Fixing scenarios removes it from the rerun log
Given I run "behat --no-colors -f progress features/apples.feature"
And there is a file named "features/bananas.feature" with:
Given I run "behat features/apples.feature"
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure I follow why we run only the apples feature, then immediately copy the bananas-fixed feature over the top of the bananas feature (without ever having run the bananas feature) and then run both features?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The original test was like this buy yeah, agree that it does not make much sense. I have updated it so that the first step runs both features, I think it makes much more sense like that

Copy link
Contributor

@acoulton acoulton left a comment

Choose a reason for hiding this comment

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

Thanks @carlos-granados yeah, I saw that was how the original feature did it. It's much clearer now.

Thanks for driving all this forward - it makes it so much easier to understand what we are actually testing!

@carlos-granados carlos-granados merged commit b64d139 into Behat:3.x Dec 10, 2025
22 checks passed
@carlos-granados carlos-granados deleted the refactor-rerun-multiple-suite-tests branch December 10, 2025 10:34
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