You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(testo): add junit-file input for JUnit report and update additional args handling. - #89
JUnit report output can now be configured with a file name or disabled.
Bug Fixes
Additional test and PHPUnit arguments containing line breaks are handled more reliably.
Test-result and coverage uploads now run only when the workflow is not cancelled and the relevant settings are provided.
The Testo workflow and action now support a configurable JUnit report file. Testo and PHPUnit actions also normalize line breaks in additional arguments and require a nonempty coverage driver before coverage uploads.
The workflow exposes and passes a JUnit-file input. Linux and Windows commands add the JUnit option when the input is nonempty. Test-results upload requires a nonempty input and uploads that file.
Argument normalization and coverage upload conditions actions/testo/action.yml, actions/phpunit/action.yml
Both actions replace line breaks in additional arguments with spaces. Coverage uploads require a nonempty driver other than none, and a non-cancelled workflow.
sequenceDiagram
participant Workflow as Testo workflow
participant Action as Testo action
participant CLI as Testo command
participant Upload as Test-results upload
Workflow->>Action: pass junit-file
Action->>CLI: add --log-junit=<file> when nonempty
CLI->>Upload: provide the configured report file
Loading
Possibly related PRs
php-forge/actions#88: Introduces the reusable Testo workflow and action that this change updates.
Suggested labels:enhancement
Merge Risk: Low · up to a9254
Existing workflows may change JUnit behavior or fail to publish custom reports; document the migration and keep report generation aligned with upload before merging.
Finishing Touches
🧪 Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
A rabbit sets a report file just right, Then sends the test results into sight. It smooths the args where newlines grew, And checks the driver is set, too. The hare hops off beneath the moon.
Comment @coderabbitai help to get the list of available commands.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request