Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@pull
Copy link

@pull pull bot commented Aug 29, 2025

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.3)

Can you help keep this open source service alive? 💖 Please sponsor : )

Previously, we were running the scenario in the fixture directory itself
(or explicitly copying individual files to a temporary directory). This
risks Behat modifying fixture files during the scenario (potentially
unexpectedly) and therefore affecting subsequent scenarios.

Instead, run every scenario in an isolated temporary working directory,
and simply initialise this from the fixture at the beginning. This
guarantees that every scenario runs in an isolated environment.

It also simplifies our step definitions, as we no longer need to provide
for copying individual files to a temp dir or having separate steps to
assert the content / presence of files in the temp dir.

Placeholders to some paths in features have changed because the paths
are now relative to the %%WORKING_DIR%% placeholder (and are not nested
under the fixture directory path) rather than to the project root.

This PR also adds some small refactors and enhancements to our features
& FeatureContext - including fixing a bug that we were not cleaning up
temporary directories created while running our features.
@pull pull bot locked and limited conversation to collaborators Aug 29, 2025
@pull pull bot added the ⤵️ pull label Aug 29, 2025
@pull pull bot merged commit 036e638 into apnerve:master Aug 29, 2025
12 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant