Skip to content

Add @testomatio/reporter-cli for Yarn 4 compatibilit#741

Merged
DavertMik merged 5 commits into2.xfrom
feature/yarn4-cli-wrapper
Apr 2, 2026
Merged

Add @testomatio/reporter-cli for Yarn 4 compatibilit#741
DavertMik merged 5 commits into2.xfrom
feature/yarn4-cli-wrapper

Conversation

@DenysKuchma
Copy link
Copy Markdown
Contributor

@DenysKuchma DenysKuchma commented Mar 18, 2026

This PR adds a separate CLI wrapper package to support Yarn 4 (Berry) installs without changing the existing @testomatio/reporter bin contract.
#716

What was added

  • New package: packages/reporter-cli (@testomatio/reporter-cli)
  • Valid Yarn-compatible CLI commands:
    • testomatio-reporter
    • reporter
  • Proxy launcher that forwards all args/env to @testomatio/reporter CLI
  • Resilient CLI resolution via @testomatio/reporter/package.json bin field (no hardcoded path)
  • Publishing workflow:
    • .github/workflows/publish-reporter-cli-to-npm.yml
  • Docs update for Yarn 4 usage:
    • README.md
    • docs/cli.md

Why

Yarn 4 rejects bin names containing /.
We cannot change the existing @testomatio/reporter bin mapping, so this wrapper provides a safe compatibility path for Yarn users.

Usage for Yarn 4 users

yarn add -D @testomatio/reporter-cli
npx testomatio-reporter [options]

or

npx reporter [options]

Scope / compatibility

  • No behavior changes in core reporter logic.
  • Existing @testomatio/reporter package remains untouched.
  • Wrapper only affects users who explicitly install @testomatio/reporter-cli.

Copy link
Copy Markdown
Contributor

@DavertMik DavertMik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Chekc all possible options env params are passing

like this

testomatio-reporter run "wdio ... "

testomatio-reporter run "codeceptjs run "

Comment thread packages/reporter-cli/package.json Outdated
- name: Sync wrapper version with root reporter package
shell: bash
run: |
VERSION=$(node -p "require('./package.json').version")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. make this workflow run on release after main package released
  2. you can use same workflow file as for release
  3. put version from release

@DenysKuchma DenysKuchma force-pushed the feature/yarn4-cli-wrapper branch from 03b1b50 to 08a893e Compare March 30, 2026 12:58
@DenysKuchma DenysKuchma requested a review from DavertMik March 30, 2026 13:22
@DavertMik DavertMik merged commit 53aa6ed into 2.x Apr 2, 2026
8 checks passed
@DavertMik DavertMik deleted the feature/yarn4-cli-wrapper branch April 2, 2026 14:59
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