spectacles icon indicating copy to clipboard operation
spectacles copied to clipboard

Support selecting a single test or file on assert

Open mariana-s-fernandes opened this issue 1 year ago • 1 comments

I would like the assert command to support selecting a single file or test so we could make our testing more modular. Looker sdk supports this: https://developers.looker.com/api/explorer/4.0/methods/Project/run_lookml_test

mariana-s-fernandes avatar Feb 26 '24 09:02 mariana-s-fernandes

Hey @mariana-s-fernandes! I think this is a great idea! This isn't something we're likely to prioritize soon, but I think it would be a pretty straightforward change to make if you or someone else would be willing to submit a PR.

The necessary code is here, you can see we get all tests and then pass them into the validate method.

Probably we would prefer to pass in some kind of a filter from the CLI, or even specific test names.

joshtemple avatar Feb 26 '24 14:02 joshtemple