Can't exclude Explores using Config file with the new Spectacles 2.X
See original GitHub issueHi,
First of all, thanks a lot for your amazing work on Spectacles 2.X 🚀
I have been trying to adapt my Looker repo to the recent Spectacles version, and I think I run into a problem trying to exclude specific explores from the tests.
I am using the SQL Validator
and I want to pass the explores
argument as part of my config.yml file. Since the --exclude
arg was removed I need to do it using a leading hyphen for the explores that I want to exclude. I have been looking at your documentation though all the examples are only using the command line.
Basically the problem that I encountered is the following:
From the command line this works perfectly and runs all explores in model_a
excluding explore_b
:
--explores "model_a/*" -model_a/explore_b
But the following code in config file still runs all explores in model_a
and does not exclude the explore_b
:
explores:
- model_a/*
- -model_a/explore_b
Very similar behaviour was observed with the following:
From the command line this works perfectly and runs all explores in all models except for model_a/explore_b
:
--explores -model_a/explore_b
But the following code in config file does not run anything and gives me the Testing 0 explores
:
explores:
- -model_a/explore_b
Would this be related to the fact that hyphen is used in yaml to specify the elements of a list? Or am I doing something wrong in my config file and in this case what should be the right syntax to exclude some specific explores from a model?
Sorry for bothering you, and thank you so much for your help! 🙂
Issue Analytics
- State:
- Created 2 years ago
- Comments:6
Top GitHub Comments
@mathieu-chiavassa Glad that sorted it! I’m actually going to leave the issue open as we’d like to make this work with just the dash in both setups.
Hey @DylanBaker ! Amazing, yes it works like that with
~
🚀 I’ll close the issue.Thank you so much for your time today it was really helpful !