Spectacles is a command-line, continuous integration tool for Looker and LookML. Spectacles runs validators which perform a range of tests on your Looker instance and your LookML. Each validator interacts with the Looker API to run tests that ensure your Looker instance is running smoothly. You can run Spectacles locally during LookML and content development, or you can run it in production as a continuous integration pipeline.
You can run the following validators as subcommands (e.g.
sqlfield of each dimension for database errors
You can find detailed documentation on our website: docs.spectacles.dev.
Spectacles is distributed on PyPi and is easy to install with pip:
pip install spectacles
Occasionally, when we make changes to LookML or our data warehouse, we break downstream experiences in Looker. For example:
sqlfield in our Looker view, leaving our users with a database error when using that field.
We believe in the power of continuous integration for analytics. We believe that automated testing should catch these errors before they are ever pushed to production. Automated testing allows developers to maintain their speed of development high, without compromising on the quality of their code or the quality data they produce.
We wanted a single tool to perform these checks for us and establish baseline performance expectations for our Looker instances. We built Spectacles to enhance the business intelligence layer of analytics CI pipelines.
Have a question or just want to chat Spectacles and Looker? Join us in Slack.