blueprint icon indicating copy to clipboard operation
blueprint copied to clipboard

[feat] Add option to choose test target in `npx blueprint test`

Open 0kenx opened this issue 2 years ago • 2 comments

Background

Currently npx blueprint build allows for specifying a build target. However for npx blueprint test, it's not possible to specify only 1 file to test, so every time all tests are run which is unnecessarily time-consuming in a large project.

Proposed solution

Make the syntax of npx blueprint build and npx blueprint test consistent:

  • npx blueprint test displays the chooser of all files in ./tests folder
  • npx blueprint test --all runs all tests.
  • npx blueprint test [target] runs only the specified test.

0kenx avatar Jan 05 '24 09:01 0kenx

npm test -t <target> is the workaround till implemented

wedvjin avatar Mar 13 '24 09:03 wedvjin

@krigga it will break pipelines i think. Maybe left npx blueprint test run all tests and allow npx blueprint test [target]?

a-bahdanau avatar Jun 19 '24 12:06 a-bahdanau

Thank you for this suggestion! Closing via #119

Alejandbel avatar Apr 24 '25 13:04 Alejandbel