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

--log-events-text and --log-events-verbose-text CLI options do not handle absolute and relative paths #5633

Conversation

marac19901990
Copy link
Contributor

Resolve both relative and absolute paths, and handle invalid arguments.

@marac19901990 marac19901990 changed the title https://github.com/sebastianbergmann/phpunit/issues/5608 Resolve --log-events-text and --log-events-verbose-text argument both as relative and absolute #5608 Resolve --log-events-text and --log-events-verbose-text argument both as relative and absolute Dec 31, 2023
@marac19901990 marac19901990 changed the base branch from main to 10.5 December 31, 2023 08:29
@sebastianbergmann sebastianbergmann force-pushed the 10.5-resolve-relative-path branch from d8ed303 to a63b6ec Compare December 31, 2023 08:31
@sebastianbergmann sebastianbergmann added type/bug Something is broken feature/test-runner CLI test runner feature/events Issues related to PHPUnit's event system labels Dec 31, 2023
@sebastianbergmann sebastianbergmann changed the title #5608 Resolve --log-events-text and --log-events-verbose-text argument both as relative and absolute --log-events-text and --log-events-verbose-text CLI options do not handle absolute and relative paths Dec 31, 2023
@sebastianbergmann sebastianbergmann removed the feature/events Issues related to PHPUnit's event system label Dec 31, 2023
Copy link

codecov bot commented Dec 31, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (c61d971) 89.40% compared to head (1b248a3) 89.41%.

Additional details and impacted files
@@            Coverage Diff            @@
##               10.5    #5633   +/-   ##
=========================================
  Coverage     89.40%   89.41%           
- Complexity     6408     6410    +2     
=========================================
  Files           682      682           
  Lines         20383    20391    +8     
=========================================
+ Hits          18224    18232    +8     
  Misses         2159     2159           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sebastianbergmann sebastianbergmann force-pushed the 10.5-resolve-relative-path branch from 47e7b60 to 1b248a3 Compare December 31, 2023 16:08
@sebastianbergmann sebastianbergmann merged commit 719eb0c into sebastianbergmann:10.5 Dec 31, 2023
31 checks passed
@marac19901990 marac19901990 deleted the 10.5-resolve-relative-path branch December 31, 2023 16:24
@theofidry
Copy link
Contributor

Thanks!

@sebastianbergmann
Copy link
Owner

sebastianbergmann commented Jan 3, 2024

I just noticed that this breaks --log-events-text php://stdout:

The path "php://stdout" specified for the --log-events-text option could not be resolved

Values given for --log-events-text and --log-events-verbose-text that begin with 'php://' or socket:// need to be excluded from this check, I assume.

@marac19901990 Can you please have a look at this? Thanks!

@sebastianbergmann
Copy link
Owner

@marac19901990 Nevermind, I think I have a patch ready.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature/test-runner CLI test runner type/bug Something is broken
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants