{"id":15426149,"url":"https://github.com/cryptaliagy/pytest-explicit","last_synced_at":"2025-04-19T16:21:05.555Z","repository":{"id":62584114,"uuid":"376340711","full_name":"cryptaliagy/pytest-explicit","owner":"cryptaliagy","description":"A pytest plugin for setting tests to be skipped by default","archived":false,"fork":false,"pushed_at":"2023-12-21T22:42:19.000Z","size":22,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-19T00:48:47.402Z","etag":null,"topics":["plugin","pytest","testing"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cryptaliagy.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-06-12T16:50:04.000Z","updated_at":"2023-12-21T22:41:51.000Z","dependencies_parsed_at":"2024-10-21T17:49:25.990Z","dependency_job_id":null,"html_url":"https://github.com/cryptaliagy/pytest-explicit","commit_stats":{"total_commits":16,"total_committers":4,"mean_commits":4.0,"dds":0.1875,"last_synced_commit":"fd8970714f6938bf0c273e18aef58857837f0416"},"previous_names":["taliamax/pytest-explicit"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptaliagy%2Fpytest-explicit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptaliagy%2Fpytest-explicit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptaliagy%2Fpytest-explicit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptaliagy%2Fpytest-explicit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cryptaliagy","download_url":"https://codeload.github.com/cryptaliagy/pytest-explicit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240400290,"owners_count":19795330,"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":["plugin","pytest","testing"],"created_at":"2024-10-01T17:54:59.713Z","updated_at":"2025-03-02T08:34:29.533Z","avatar_url":"https://github.com/cryptaliagy.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pytest-Explicit\n[![pypi version](https://img.shields.io/pypi/v/pytest-explicit)](https://pypi.org/project/pytest-explicit/)\n[![python versions](https://img.shields.io/pypi/pyversions/pytest-explicit)](https://pypi.org/project/pytest-explicit/)\n[![package state](https://img.shields.io/pypi/status/pytest-explicit)](https://pypi.org/project/pytest-explicit/)\n[![pypi release](https://img.shields.io/github/workflow/status/taliamax/pytest-explicit/release)](https://github.com/taliamax/pytest-explicit/actions/workflows/release.yaml)\n[![pypi downloads](https://img.shields.io/pypi/dm/pytest-explicit)](https://pypi.org/project/pytest-explicit/)\n[![license](https://img.shields.io/pypi/l/pytest-explicit)](https://github.com/taliamax/pytest-explicit/blob/main/LICENSE)\n\n\n## Some tests you just don't want to run\n\nHey, I get it. Sometimes we write tests, but we don't actually want to wait\nfor them to finish executing. Whether they're slow tests, they need some\ndependencies you don't have, or they aren't related to the work you\ndo, there's some tests that just weren't meant to be run by devs in the age\nof CI/CD platforms. That's where `pytest-explicit` comes in.\n\n\nThis plugin allows developers to specify test markers that should be ignored\nby default when running `pytest`, but also quickly bypass this behaviour\nfor CI/CD. Just add a `--run-all` flag to your pytest command for your test\npipeline, and this plugin won't skip anything!\n\n## Configuring\n\nIf all you want to do is skip slow tests by default, you can stop reading\nnow. Out-of-the-box, `pytest-explicit` will make any test marked `slow`\nrequire you to pass the `--run-slow` (or `--run-all`) for them to take\nup precious developer time.\n\nNeed more ignored tests? Just add the `explicit-only` option to your\npytest config file, and `pytest-explicit` will pick up the markers\nspecified and dynamically add `--run-\u003cmarker\u003e` CLI options to pytest. Here's\na sample `setup.cfg` file below!\n\n```ini\n[tool:pytest]\nmarkers =\n    slow: Marks a slow test\n    memory_intensive: Marks a test that needs at least 16 gb RAM to run\n    smoke: Marks a test that gives early alert to the health of the app\ntestpaths = tests\nexplicit-only =\n    slow\n    memory_intensive\n```\n\nWith this configuration file, any test marked with either `slow` or\n`memory_intensive` won't run unless the appropriate CLI flags are passed!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcryptaliagy%2Fpytest-explicit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcryptaliagy%2Fpytest-explicit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcryptaliagy%2Fpytest-explicit/lists"}