Skip to content

Conversation

@carlos-granados
Copy link
Contributor

With the current implementation, the checks for the JSON file (check that the output path had been passed, that it was not a directory, that we could create the file) would not happen until after all the tests had been run, which could be very inconvenient, run all tests only to find that you cannot write the file.

In this PR we change this to follow what the JUnit formatter does, which is to try to create the file at the beginning of the test run.

@carlos-granados
Copy link
Contributor Author

@acoulton this is the issue that I found and that I wanted to fix before we did the release

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.

LGTM, thanks @carlos-granados

acoulton added a commit to acoulton/Behat that referenced this pull request Oct 28, 2025
@carlos-granados carlos-granados merged commit dda543d into Behat:master Oct 28, 2025
19 checks passed
acoulton added a commit to acoulton/Behat that referenced this pull request Oct 28, 2025
@carlos-granados carlos-granados deleted the fix-json-file-check branch October 29, 2025 07:53
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