{"id":19365617,"url":"https://github.com/nikvolf/gtest-min","last_synced_at":"2026-06-17T16:08:57.527Z","repository":{"id":226641186,"uuid":"769257665","full_name":"NikVolf/gtest-min","owner":"NikVolf","description":"Minimal example for `cargo gtest`","archived":false,"fork":false,"pushed_at":"2024-03-08T17:24:08.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-26T18:40:02.771Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/NikVolf.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2024-03-08T17:06:04.000Z","updated_at":"2024-03-08T17:26:41.000Z","dependencies_parsed_at":"2024-03-08T18:31:44.986Z","dependency_job_id":"1dd4ae13-4707-44ea-b9b8-bd7e839e14fe","html_url":"https://github.com/NikVolf/gtest-min","commit_stats":null,"previous_names":["nikvolf/gtest-min"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/NikVolf/gtest-min","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NikVolf%2Fgtest-min","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NikVolf%2Fgtest-min/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NikVolf%2Fgtest-min/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NikVolf%2Fgtest-min/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NikVolf","download_url":"https://codeload.github.com/NikVolf/gtest-min/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NikVolf%2Fgtest-min/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34453586,"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-17T02:00:05.408Z","response_time":127,"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":"2024-11-10T07:41:36.191Z","updated_at":"2026-06-17T16:08:57.467Z","avatar_url":"https://github.com/NikVolf.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gtest-min\nMinimal example for `cargo gtest`.\nTry it by running:\n`cargo gtest`\nor\n`cargo gtest --release`\n\n(Install `cargo-gtest` via `cargo install --git https://github.com/NikVolf/onchain-tests`)\n\n## What is minimal\n\n- Dependencies on test-runtime:\n```toml\ngear-test-codegen = { git = \"https://github.com/nikvolf/onchain-tests\" }\ngear-test-runtime = { git = \"https://github.com/nikvolf/onchain-tests\" }\n```\n\n- Build dependency (improved version of `gear-wasm-builder`):\n```toml\ngear-ext-builder = { git = \"https://github.com/nikvolf/onchain-tests\" }\n```\n\n## Using\nAs you can see in `src/tests.rs`, tests are declared with simple decorator!\n\n```rust\n#[gear_test_codegen::test]\nasync fn good(context: \u0026gear_test_runtime::SessionData) {\n    let this = create_this(\u0026context.testee()).await;\n\n    let result: Vec\u003cu8\u003e = msg::send_bytes_for_reply(this, b\"PING\", 0, 0)\n        .expect(\"failed to send\")\n        .await\n        .expect(\"Program to handle simple PING!!1\");\n\n    assert_eq!(result, b\"PONG\")\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikvolf%2Fgtest-min","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnikvolf%2Fgtest-min","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikvolf%2Fgtest-min/lists"}