blueprint
blueprint copied to clipboard
[feat] Add option to choose test target in `npx blueprint test`
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 testdisplays the chooser of all files in ./tests folder -
npx blueprint test --allruns all tests. -
npx blueprint test [target]runs only the specified test.
npm test -t <target> is the workaround till implemented
@krigga it will break pipelines i think. Maybe left npx blueprint test run all tests and allow npx blueprint test [target]?
Thank you for this suggestion! Closing via #119