Back to Marimo

Testing with doctest

docs/guides/testing/doctest.md

0.23.5364 B
Original Source

Testing with doctest

You can test code snippets in docstrings using doctest, a Python module for testing code snippets in documentation. This works because marimo notebooks are just Python programs.

See this notebook for an example:

/// marimo-embed-file filepath: examples/testing/running_doctests.py ///