Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.

cmd/unity: add support for a --run flag #38

Open
myitcv opened this issue Mar 3, 2021 · 0 comments
Open

cmd/unity: add support for a --run flag #38

myitcv opened this issue Mar 3, 2021 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@myitcv
Copy link
Contributor

myitcv commented Mar 3, 2021

go test has a -run flag that allows the caller to specify a regex that describes which tests/subtests should be run.

Imagine a scenario where you are making changes to CUE and you reach a point where the change has resulted in a "break" with respect to a test in project (in the unity corpus). You likely want to enter a develop-test cycle until you make that test pass again. Running the entire corpus, or even all tests in the project, might get boring/heavyweight. So having a way to precisely specify the test to run would be useful. e.g.

$ go run github.com/cue-sh/unity/cmd/unity test --verbose --corpus --overlay overlays --nopath --run projects/github.com/TangoGroup/cfn-cue/eval/refs/changes/41/8841/3 refs/changes/41/8841/3
@myitcv myitcv added the enhancement New feature or request label Mar 3, 2021
@myitcv myitcv added this to the Unplanned milestone Mar 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Development

No branches or pull requests

1 participant