{"id":15017817,"url":"https://github.com/boxed/pytest-test-this","last_synced_at":"2025-04-12T12:33:46.664Z","repository":{"id":57456528,"uuid":"208267747","full_name":"boxed/pytest-test-this","owner":"boxed","description":"Plugin for pytest to run relevant tests, by naively checking if a test contains a reference to the symbol you supply","archived":false,"fork":false,"pushed_at":"2019-09-15T14:37:22.000Z","size":10,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-09T19:49:39.014Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/boxed.png","metadata":{"files":{"readme":"README.rst","changelog":"HISTORY.rst","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-09-13T13:13:44.000Z","updated_at":"2024-06-12T20:41:41.000Z","dependencies_parsed_at":"2022-09-13T14:25:22.923Z","dependency_job_id":null,"html_url":"https://github.com/boxed/pytest-test-this","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boxed%2Fpytest-test-this","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boxed%2Fpytest-test-this/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boxed%2Fpytest-test-this/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boxed%2Fpytest-test-this/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/boxed","download_url":"https://codeload.github.com/boxed/pytest-test-this/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248566666,"owners_count":21125701,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-09-24T19:51:01.504Z","updated_at":"2025-04-12T12:33:46.644Z","avatar_url":"https://github.com/boxed.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"===============================\npytest-test-this\n===============================\n\nPlugin for ``pytest`` to run relevant tests by naively check if test functions contain a reference to the symbol supplied.\n\n\nLimitations:\n    - it only looks for top level test functions, so test classes won't be discovered\n    - very naive check, so indirect usages of a symbol won't be found\n\nThis trade off has been made for speed. This method is extremely fast compared to the other common method which tries to be correct by running the full test suite under coverage and checking if the function was called directly or indirectly.\n\nInstallation\n------------\n\n    pip install pytest-test-this\n\nUsage\n-----\n\n    pytest --test-this=foo\n\n...where foo is the name of your function, class or variable. You can write multiple symbols comma separated.\n\n\nThere is also a special simplified mode for users of git:\n\n    pytest --test-this-git\n\n\nthis will try to automatically guess the symbols to run against based on a `git diff` and run pytest-test-this against those symbols\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboxed%2Fpytest-test-this","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fboxed%2Fpytest-test-this","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboxed%2Fpytest-test-this/lists"}