{"categories":[{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing/6"}],"enrichment":{"capability":"Runs pytest test suites directly in Jupyter notebooks with full pytest functionality, including assertion rewriting and test discovery.","skillfed_tags":["jupyter-integration","interactive-testing"],"use_cases":["Prototyping unit tests interactively in a notebook before moving them to a dedicated test file.","Teaching or documenting code behavior by writing and running tests inline with explanatory text.","Testing data science or analysis code iteratively without switching between notebook and terminal.","Debugging test failures by running pytest with full notebook context and repl access.","Validating module behavior during development when using IPython's autoreload extension."],"what_it_does":"ipytest bridges pytest and Jupyter notebooks, letting you write and run unit tests interactively without leaving the notebook environment. It registers pytest's assertion rewriter with IPython for better error messages, handles the notebook-to-module mapping pytest needs, and cleans up test state between cell executions to avoid stale test definitions.\n\nThe package depends on ipython, packaging, and pytest. It's designed to make it easy to prototype tests in notebooks and later move them to separate test files. It handles common notebook gotchas like module caching and async event loop interference, offering options like force_reload() and run_in_thread mode to work around them.","worth_installing":"Yes, if you work in Jupyter notebooks and want to run pytest without leaving the environment. The package is stable, has no known vulnerabilities, and low install friction. The 845-day dormancy is a minor concern but not a blocker for a mature, narrow-scope tool. Install it if interactive testing in notebooks fits your workflow; skip it if you already run tests in a separate CI/test runner."},"id":"ipytest","links":{"html":"https://skillfed.io/packages/ipytest","md":"https://skillfed.io/packages/ipytest.md","pypi":"https://pypi.org/project/ipytest/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2024-04-21","license_spdx":null,"license_treatment":"permissive","name":"ipytest","python_support":"supports_current","summary":"Unit tests in IPython notebooks"},"popularity":{"monthly_downloads":77508,"position":14519,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.14.2"}
