Skip to content

run-tests.php doesn't create test results if directories are passed #18404

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

Open
nwellnhof opened this issue Apr 23, 2025 · 2 comments
Open

run-tests.php doesn't create test results if directories are passed #18404

nwellnhof opened this issue Apr 23, 2025 · 2 comments

Comments

@nwellnhof
Copy link

Description

If I execute run-tests.php without arguments, I'm asked if I want to write the test results to a file. This stops working as soon as I limit the tests to some subdirectories by passing them as arguments to run-tests.php. Is there a way to get the test results without running the full test suite?

PHP Version

PHP 8.5.0-dev (cli) (built: Apr 23 2025 16:48:44) (NTS DEBUG)
Copyright (c) The PHP Group
Zend Engine v4.5.0-dev, Copyright (c) Zend Technologies

Operating System

No response

@nielsdos
Copy link
Member

It probably makes sense to also write the test results to a file even without running all the tests.
In any case, for your CI use case, you can pass --show-diff as an argument to run-tests.php to print out the diff between the expected and actual output.

@nwellnhof
Copy link
Author

Thanks, --show-diff is what I was looking for.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants