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

What’s New in the Astro Platform Release, Q1 2024

Implementing CI/CD workflows for your Airflow pipelines

Reusable DAG Patterns with TaskGroups

Implementing data quality checks with the Astro SDK

Try Astro for Free for 14 Days

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

Get Started

Build, run, & observe your data workflows. All in one place.

Build, run, & observe
your data workflows.
All in one place.

Try Astro today and get up to $500 in free credits during your 14-day trial.