{"id":34077445,"url":"https://github.com/apex-engineers-inc/rustest","last_synced_at":"2025-12-14T10:04:09.081Z","repository":{"id":322520829,"uuid":"1089798029","full_name":"Apex-Engineers-Inc/rustest","owner":"Apex-Engineers-Inc","description":"Pytest-style python test runner powered by Rust - built for speed 🚀","archived":false,"fork":false,"pushed_at":"2025-12-07T01:08:03.000Z","size":1000,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-07T23:39:28.772Z","etag":null,"topics":["python","test","testing","unit-testing"],"latest_commit_sha":null,"homepage":"https://apex-engineers-inc.github.io/rustest/","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/Apex-Engineers-Inc.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":"2025-11-04T20:35:07.000Z","updated_at":"2025-12-06T16:35:22.000Z","dependencies_parsed_at":"2025-12-06T15:02:18.938Z","dependency_job_id":null,"html_url":"https://github.com/Apex-Engineers-Inc/rustest","commit_stats":null,"previous_names":["apex-engineers-inc/rustest"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Apex-Engineers-Inc/rustest","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Apex-Engineers-Inc%2Frustest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Apex-Engineers-Inc%2Frustest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Apex-Engineers-Inc%2Frustest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Apex-Engineers-Inc%2Frustest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Apex-Engineers-Inc","download_url":"https://codeload.github.com/Apex-Engineers-Inc/rustest/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Apex-Engineers-Inc%2Frustest/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27725944,"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","status":"online","status_checked_at":"2025-12-14T02:00:11.348Z","response_time":56,"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":["python","test","testing","unit-testing"],"created_at":"2025-12-14T10:04:07.166Z","updated_at":"2025-12-14T10:04:09.068Z","avatar_url":"https://github.com/Apex-Engineers-Inc.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n![rustest logo](assets/logo.svg)\n\n\u003c/div\u003e\n\nRustest is a Rust-powered pytest-compatible test runner delivering **8.5× average speedup** with familiar pytest syntax and zero setup.\n\n📚 **[Full Documentation](https://apex-engineers-inc.github.io/rustest)** | [Getting Started](https://apex-engineers-inc.github.io/rustest/getting-started/quickstart/) | [Migration Guide](https://apex-engineers-inc.github.io/rustest/from-pytest/migration/)\n\n## 🚀 Try It Now\n\nRun your existing pytest tests with rustest — no code changes required:\n\n\u003c!--pytest.mark.skip--\u003e\n```bash\npip install rustest\nrustest --pytest-compat tests/\n```\n\nSee the speedup immediately, then migrate to native rustest for full features.\n\n## Why Rustest?\n\n- 🚀 **8.5× average speedup** over pytest (up to 19× on large suites)\n- 🧪 **pytest-compatible** — Run existing tests with `--pytest-compat`\n- ✅ **Familiar API** — Same `@fixture`, `@parametrize`, `@mark` decorators\n- 🔄 **Built-in async \u0026 mocking** — No pytest-asyncio or pytest-mock plugins needed\n- 🐛 **Clear error messages** — Vitest-style output with Expected/Received diffs\n- 📝 **Markdown testing** — Test code blocks in documentation\n- 🛠️ **Rich fixtures** — `tmp_path`, `monkeypatch`, `mocker`, `capsys`, `caplog`, `cache`, and more\n\n## Performance\n\nRustest delivers consistent speedups across test suites of all sizes:\n\n| Test Count | pytest | rustest | Speedup |\n|-----------:|-------:|--------:|--------:|\n|         20 | 0.45s  |  0.12s  |  3.8×   |\n|        500 | 1.21s  |  0.15s  |  8.3×   |\n|      5,000 | 7.81s  |  0.40s  | 19.4×   |\n\n**Expected speedups:** 3-4× for small suites, 5-8× for medium suites, 11-19× for large suites.\n\n**[📊 Full Performance Analysis →](https://apex-engineers-inc.github.io/rustest/advanced/performance/)**\n\n## Installation\n\n\u003c!--pytest.mark.skip--\u003e\n```bash\npip install rustest\n# or\nuv add rustest\n```\n\n**Python 3.10-3.14 supported.** [📖 Installation Guide →](https://apex-engineers-inc.github.io/rustest/getting-started/installation/)\n\n## Quick Start\n\nWrite a test in `test_example.py`:\n\n```python\nfrom rustest import fixture, parametrize, mark, raises\n\n@fixture\ndef numbers():\n    return [1, 2, 3, 4, 5]\n\ndef test_sum(numbers):\n    assert sum(numbers) == 15\n\n@parametrize(\"value,expected\", [(2, 4), (3, 9)])\ndef test_square(value, expected):\n    assert value ** 2 == expected\n\n@mark.asyncio\nasync def test_async():\n    result = 42\n    assert result == 42\n\ndef test_exception():\n    with raises(ZeroDivisionError):\n        1 / 0\n```\n\nRun your tests:\n\n\u003c!--pytest.mark.skip--\u003e\n```bash\nrustest                      # Run all tests\nrustest tests/               # Run specific directory\nrustest -k \"test_sum\"        # Filter by name\nrustest -m \"slow\"            # Filter by mark\nrustest --lf                 # Rerun last failed\nrustest -x                   # Exit on first failure\n```\n\n**[📖 Full Documentation →](https://apex-engineers-inc.github.io/rustest)**\n\n## Learn More\n\n- **[Getting Started](https://apex-engineers-inc.github.io/rustest/getting-started/quickstart/)** — Complete quickstart guide\n- **[Migration from pytest](https://apex-engineers-inc.github.io/rustest/from-pytest/migration/)** — 5-minute migration guide\n- **[User Guide](https://apex-engineers-inc.github.io/rustest/guide/writing-tests/)** — Fixtures, parametrization, marks, assertions\n- **[API Reference](https://apex-engineers-inc.github.io/rustest/api/overview/)** — Complete API documentation\n\n## Contributing\n\nContributions welcome! See the [Development Guide](https://apex-engineers-inc.github.io/rustest/advanced/development/) for setup instructions.\n\n## License\n\nMIT License. See [LICENSE](LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapex-engineers-inc%2Frustest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapex-engineers-inc%2Frustest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapex-engineers-inc%2Frustest/lists"}