{"id":15031368,"url":"https://github.com/charted-dev/testkit","last_synced_at":"2026-01-19T02:32:35.050Z","repository":{"id":243140459,"uuid":"795231378","full_name":"charted-dev/testkit","owner":"charted-dev","description":"📦🦋 TestKit is a Rust-based testing framework for HTTP-based services with Testcontainers support","archived":false,"fork":false,"pushed_at":"2025-03-31T04:04:30.000Z","size":66,"stargazers_count":1,"open_issues_count":4,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-07T20:16:04.304Z","etag":null,"topics":["axum","charted","rust","rustlang","testkit"],"latest_commit_sha":null,"homepage":"https://docs.rs/charted-testkit","language":"Rust","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/charted-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["auguwu","Noelware"],"custom":["https://paypal.me/auguwu","https://charts.noelware.org"]}},"created_at":"2024-05-02T21:03:46.000Z","updated_at":"2024-12-09T07:01:36.000Z","dependencies_parsed_at":"2024-06-06T23:38:55.753Z","dependency_job_id":"0ccd64ed-f461-4e34-a8ec-27b3fa0a6eec","html_url":"https://github.com/charted-dev/testkit","commit_stats":null,"previous_names":["charted-dev/testkit"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/charted-dev/testkit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charted-dev%2Ftestkit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charted-dev%2Ftestkit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charted-dev%2Ftestkit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charted-dev%2Ftestkit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/charted-dev","download_url":"https://codeload.github.com/charted-dev/testkit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charted-dev%2Ftestkit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28558231,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T00:46:33.223Z","status":"online","status_checked_at":"2026-01-19T02:00:08.049Z","response_time":67,"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":["axum","charted","rust","rustlang","testkit"],"created_at":"2024-09-24T20:15:31.933Z","updated_at":"2026-01-19T02:32:35.036Z","avatar_url":"https://github.com/charted-dev.png","language":"Rust","readme":"\u003cimg align=\"right\" width=\"auto\" height=\"auto\" alt=\"Noel (Trans Heart)\" src=\"https://cdn.floofy.dev/images/trans.png\" /\u003e\n\n# 📦🦋 charted TestKit\ncharted **TestKit** is a testing library for [Axum](https://github.com/tokio-rs/axum), which extends [`libtest`] with its own [`test`] macro. The library can also be used for only Testcontainers as well.\n\n**TestKit** was built to make integration testing easier for Axum services with Testcontainers support and additional macros to help build assertions based off [`Response`]s.\n\n## Example\n```rust\nuse charted_testkit::{test, TestContext, assert_successful, consume_body};\nuse axum::{body::Bytes, routing, Router};\nuse hyper::Method;\n\nasync fn hello() -\u003e \u0026'static str {\n    \"Hello, world!\"\n}\n\nfn router() -\u003e Router {\n    Router::new().route(\"/\", routing::get(hello))\n}\n\n#[test(router)]\nasync fn mytest(ctx: TestContext) {\n    let res = ctx\n        .request(\"/\", Method::GET, None::\u003caxum::body::Bytes\u003e, |_| {})\n        .await\n        .expect(\"unable to send request\");\n\n    assert_successful!(res);\n\n    let body = consume_body!(res);\n    assert_eq!(body, Bytes::from_static(b\"Hello, world!\"));\n}\n```\n\n## License\n**TestKit** is released under the [`MIT` License](/LICENSE) with love and care by [Noelware, LLC.](https://noelware.org)! 🐻‍❄️🦋\n\nPlease read the `LICENSE` file in the [canonical repository](https://github.com/charted-dev/testkit) for more information on what you can do with the source code.\n\n[`Response`]: https://docs.rs/http/latest/http/response/struct.Response.html\n[`libtest`]: https://doc.rust-lang.org/stable/test\n[`test`]: #\n","funding_links":["https://github.com/sponsors/auguwu","https://github.com/sponsors/Noelware","https://paypal.me/auguwu","https://charts.noelware.org"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcharted-dev%2Ftestkit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcharted-dev%2Ftestkit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcharted-dev%2Ftestkit/lists"}