{"id":50472312,"url":"https://github.com/semcod/testless","last_synced_at":"2026-06-01T11:03:11.676Z","repository":{"id":360069518,"uuid":"1248571031","full_name":"semcod/testless","owner":"semcod","description":null,"archived":false,"fork":false,"pushed_at":"2026-05-24T21:01:04.000Z","size":279,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-24T22:22:24.007Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/semcod.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-24T20:18:06.000Z","updated_at":"2026-05-24T21:05:40.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/semcod/testless","commit_stats":null,"previous_names":["semcod/pretest"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/semcod/testless","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semcod%2Ftestless","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semcod%2Ftestless/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semcod%2Ftestless/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semcod%2Ftestless/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/semcod","download_url":"https://codeload.github.com/semcod/testless/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semcod%2Ftestless/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33771630,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-01T02:00:06.963Z","response_time":115,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2026-06-01T11:03:07.375Z","updated_at":"2026-06-01T11:03:11.668Z","avatar_url":"https://github.com/semcod.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# testless\n\n\n## AI Cost Tracking\n\n![PyPI](https://img.shields.io/badge/pypi-costs-blue) ![Version](https://img.shields.io/badge/version-0.1.7-blue) ![Python](https://img.shields.io/badge/python-3.9+-blue) ![License](https://img.shields.io/badge/license-Apache--2.0-green)\n![AI Cost](https://img.shields.io/badge/AI%20Cost-$0.60-orange) ![Human Time](https://img.shields.io/badge/Human%20Time-3.0h-blue) ![Model](https://img.shields.io/badge/Model-openrouter%2Fqwen%2Fqwen3--coder--next-lightgrey)\n\n- 🤖 **LLM usage:** $0.6007 (8 commits)\n- 👤 **Human dev:** ~$300 (3.0h @ $100/h, 30min dedup)\n\nGenerated on 2026-05-26 using [openrouter/qwen/qwen3-coder-next](https://openrouter.ai/qwen/qwen3-coder-next)\n\n---\n\n**testless** is a Python package that sits as an analytical layer on top of your existing test suite.\nIt analyses test **value**, **coverage overlap**, **duplication**, and **missing gaps**, then generates\nLLM-ready **planfile** tickets that describe exactly what to remove, refactor, or add.\n\n---\n\n## Features\n\n| Command | What it does |\n|---------|--------------|\n| `testless scan` | Run pytest with `--cov-context=test` and collect metadata |\n| `testless duplicates` | Detect duplicate tests (coverage + AST + fixture overlap) |\n| `testless missing` | Suggest smoke, e2e, contract, and TestQL tests |\n| `testless planfiles` | Generate YAML planfile tickets for an LLM |\n| `testless doctor` | Answer questions: \"what to remove?\", \"what to add?\" |\n\n---\n\n## Quick Start\n\n```bash\npip install testless\n# or with uv:\nuv add --dev testless\n\n# 1. Scan your project\ntestless scan\n\n# 2. Find duplicate tests (threshold: 85 % similarity)\ntestless duplicates --min-overlap 0.85\n\n# 3. Find missing smoke / service / e2e tests\ntestless missing --services src/myapp\n\n# 4. Generate LLM planfiles\ntestless planfiles --out .planfiles/ --with-prompts\n\n# 5. Ask doctor questions\ntestless doctor \"which tests should I remove?\"\n```\n\n---\n\n## Configuration\n\nCreate a `.testless.yml` in your project root:\n\n```yaml\npackages:\n  - myapp\n\ntest_dirs:\n  - tests\n\nmin_duplicate_score: 0.85\nplanfiles_dir: .planfiles\ncoverage_dir: .coverage_data\n\npytest_args:\n  - --tb=short\n```\n\n---\n\n## Planfile format\n\nEach generated ticket is a self-contained YAML file that an LLM can act on:\n\n```yaml\nversion: \"1\"\nkind: duplicate\nid: \"DUP-3A7F2C\"\ntitle: \"Remove duplicate test: test_health_ok vs test_health_status_200\"\ngoal: \"Reduce test suite redundancy without losing unique coverage\"\ncontext:\n  test_a: tests/api/test_health.py::test_health_ok\n  test_b: tests/api/test_health.py::test_health_status_200\nevidence:\n  - description: \"score=0.93, coverage_overlap=0.95\"\n    score: 0.93\nimpact:\n  risk: low\n  expected_gains:\n    - shorter test run time\n    - reduced maintenance burden\ntasks:\n  - description: Compare test_health_ok and test_health_status_200 manually\n  - description: Remove the weaker/less descriptive test\n  - description: Run suite and verify no coverage regression\nacceptance_criteria:\n  - No decrease in unique line coverage\n  - All remaining tests pass\nllm_hints:\n  style: minimal change\n  safe_refactor: true\n```\n\n---\n\n## Architecture\n\n```\nsrc/testless/\n├── cli.py                  # Click CLI\n├── config.py               # .testless.yml loader\n├── models/\n│   ├── planfile.py         # Pydantic Planfile model\n│   ├── findings.py         # Finding models\n│   └── coverage_map.py     # CoverageMap model\n├── collect/\n│   ├── pytest_runner.py    # Run pytest, collect metadata\n│   ├── coverage_loader.py  # Parse coverage.json contexts\n│   ├── fixture_index.py    # AST-based fixture indexer\n│   └── endpoint_inventory.py  # HTTP endpoint/service scanner\n├── analyze/\n│   ├── duplicate_tests.py  # Duplicate detection\n│   ├── dead_tests.py       # Dead test detection\n│   ├── missing_tests.py    # Missing test suggestions\n│   ├── service_risk.py     # Service risk scoring\n│   └── refactor_candidates.py  # Refactor detection\n├── suggest/\n│   ├── smoke.py            # Smoke test templates\n│   ├── e2e.py              # E2E test templates\n│   ├── service_tests.py    # Service contract templates\n│   └── testql.py           # TestQL stub generator\n├── tickets/\n│   ├── builder.py          # Build Planfile from findings\n│   ├── serializer.py       # Write planfiles to disk\n│   └── prompts.py          # Attach LLM prompts\n└── reporters/\n    ├── console.py          # Coloured terminal output\n    ├── markdown.py         # Markdown report\n    └── json.py             # JSON report\n```\n\n---\n\n## License\n\nLicensed under Apache-2.0.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsemcod%2Ftestless","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsemcod%2Ftestless","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsemcod%2Ftestless/lists"}