Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--format=junit doesn't work without --out also passed #1408

Open
dkarlovi opened this issue Aug 19, 2022 · 0 comments
Open

--format=junit doesn't work without --out also passed #1408

dkarlovi opened this issue Aug 19, 2022 · 0 comments

Comments

@dkarlovi
Copy link

 ̇$ vendor/bin/behat --format=junit

Deprecated: is_file(): Passing null to parameter #1 ($filename) of type string is deprecated in /app/vendor/behat/behat/src/Behat/Testwork/Output/Printer/Factory/FilesystemOutputFactory.php on line 47

Deprecated: is_dir(): Passing null to parameter #1 ($filename) of type string is deprecated in /app/vendor/behat/behat/src/Behat/Testwork/Output/Printer/Factory/FilesystemOutputFactory.php on line 52

Deprecated: mkdir(): Passing null to parameter #1 ($directory) of type string is deprecated in /app/vendor/behat/behat/src/Behat/Testwork/Output/Printer/Factory/FilesystemOutputFactory.php on line 53

Warning: mkdir(): Invalid path in /app/vendor/behat/behat/src/Behat/Testwork/Output/Printer/Factory/FilesystemOutputFactory.php on line 53

Warning: fopen(/file.xml): Failed to open stream: Permission denied in /app/vendor/behat/behat/src/Behat/Testwork/Output/Printer/Factory/FilesystemOutputFactory.php on line 63

                                                                
  The StreamOutput class needs a stream as its first argument.  

It requires you to also pass --out, but that's not clear from the error message at all.

Options from discussion in Symfony Slack:

  1. default to CWD
  2. clear exception that --out is now required
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

No branches or pull requests

1 participant