melos icon indicating copy to clipboard operation
melos copied to clipboard

request: melos test

Open ricardodalarme opened this issue 11 months ago • 1 comments

Is there an existing feature request for this?

  • [X] I have searched the existing issues.

Command

melos test

Description

Pub Workspaces do not support running dart test or flutter test across all packages in the workspace. Developers still need to manually navigate to each package or script custom solutions to run tests across the entire monorepo.

Reasoning

  1. One command to run all tests across the workspace, regardless of package type
  2. Eliminate the need to create a melos script that runs the tests

Additional context and comments

I know it's already possible to create a custom Melos script to achieve this, but it would be helpful to have a built-in solution, similar to how melos analyze automatically runs dart analyze for Dart projects and flutter analyze for Flutter projects.

ricardodalarme avatar Jan 08 '25 15:01 ricardodalarme

I use the very_good_cli for tests, would be great to drop a dependency (vgc automatically puts all of the tests in a single isolate, leading to significant speedups, and it defaults to --no-pub (#815)).

lishaduck avatar Jan 09 '25 14:01 lishaduck