WEBINAR

How to easily test your Airflow DAGs with the new dag.test() function

Recorded On March 7, 2023

  • Tamara Fingerlin
  • Kenten Danas

This “Live with Astronomer” session covers how to use the new dag.test() function to quickly test and debug your Airflow DAGs directly in your IDE. Using the dag.test() function speeds up iterative development by running tasks in a single, serialized Python process that does not require running Airflow.

Questions covered in this session include:

  • How does the dag.test() function work and what version of Airflow do I need to use it?
  • What are the prerequisites for the environment I run dag.test() in?
  • Which operators does dag.test() work best with?
  • How can I test argument-specific DAG runs with dag.test()?

Learn more about testing and debugging DAGs in this guide and in the official Airflow documentation. All code shown during this event can be found in this repo.

Explore our Comprehensive Guide to Data Pipeline Testing with Airflow.

See More Resources

Try Astro for Free for 14 Days

Sign up with your business email and get up to $20 in free credits.

Get Started

Get started free.

OR

API Access
Alerting
SAML-Based SSO
Airflow AI Assistant
Deployment Rollbacks
Audit Logging

By proceeding you agree to our Privacy Policy, our Website Terms and to receive emails from Astronomer.