Spectacles is a 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.
From the command line, you can run the following validators as subcommands (e.g. spectacles sql
):
β
SQL validation - tests the sql
field of each dimension for database errors
β Assert validation - runs Looker data tests
β Content validation - tests for errors in Looks and Dashboards
β LookML validation - runs LookML validator
Spectacles CLI is distributed on PyPi and is easy to install with pip:
pip install spectacles
π£ You can also use Spectacles as a full-service web application! Check out our website to learn more.
You can find detailed documentation for the CLI and web app on our docs page: docs.spectacles.dev.
Occasionally, when we make changes to LookML or our data warehouse, we break downstream experiences in Looker:
sql
field in our Looker view, leaving our users with a database error when using that fieldWe believe in the power of testing and continuous integration for analytics. We believe that automated tests should catch these errors before they're ever pushed to production.
We wanted a single tool to perform these checks for us, so we built Spectacles to enhance the business intelligence layer of analytics CI pipelines.
Have a question or just want to chat Spectacles or Looker? Join us in Slack.