https://dagster.io/ logo
#ask-ai
Title
# ask-ai
s

Shane Keller

02/26/2024, 5:35 PM
Does dagster use pytest?
s

Scout

02/26/2024, 5:35 PM
Yes, we use pytest for running unit tests in Dagster. The documentation provides examples of how to use pytest to run tests for Dagster assets and jobs. For instance, after defining your tests, you can navigate to the top-level directory of your project and run the tests using the
pytest
command. Here's an example from the documentation on how to run tests for a group of assets:
Copy code
shell pytest tutorial_project_tests
This command will execute the tests and you can observe the output in your terminal. The documentation emphasizes that Dagster is designed to make testing easier in a domain where it has historically been difficult, and encourages the use of pytest or other test runners of choice for this purpose.
2 Views