{"id":15022431,"url":"https://github.com/k-nasa/ruspec","last_synced_at":"2025-10-24T01:30:37.073Z","repository":{"id":52227871,"uuid":"174970702","full_name":"k-nasa/ruspec","owner":"k-nasa","description":"write like Rspec testing framework with rust","archived":false,"fork":false,"pushed_at":"2023-05-26T20:57:42.000Z","size":65,"stargazers_count":24,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-09-27T12:01:35.486Z","etag":null,"topics":["rspec","rust","test","testing","testing-framework"],"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/k-nasa.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}},"created_at":"2019-03-11T09:48:49.000Z","updated_at":"2024-02-26T03:25:49.000Z","dependencies_parsed_at":"2022-09-14T21:41:04.955Z","dependency_job_id":"fc69ca2f-f36f-48ac-b3b4-800dc6867b03","html_url":"https://github.com/k-nasa/ruspec","commit_stats":{"total_commits":72,"total_committers":3,"mean_commits":24.0,"dds":0.2222222222222222,"last_synced_commit":"b5af8e7e69f48076bc53e7a4295a7abf10182240"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k-nasa%2Fruspec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k-nasa%2Fruspec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k-nasa%2Fruspec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k-nasa%2Fruspec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/k-nasa","download_url":"https://codeload.github.com/k-nasa/ruspec/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219867198,"owners_count":16555821,"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":["rspec","rust","test","testing","testing-framework"],"created_at":"2024-09-24T19:57:56.519Z","updated_at":"2025-10-24T01:30:31.780Z","avatar_url":"https://github.com/k-nasa.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ruspec - write like Rspec testing framework with rust\n\n[![crate-name at crates.io](https://img.shields.io/crates/v/ruspec.svg)](https://crates.io/crates/ruspec)\n\n## how to use\n\nAdd your Cargo.toml\n\n```\nruspec = \"0.1.3\"\n```\n\nimport ruspec!\n\n```\nuse ruspec::ruspec;\n```\n\n## Example syntax\n\n```rust\nuse ruspec::ruspec;\n\nruspec! {\n    describe \"test module name\" {\n        before { let context = 5; }\n        subject { context + 5 }\n\n        it \"test name\" {\n            assert_eq!(subject, 10);\n        }\n    }\n\n    describe \"test module 2\" {\n        before { let context = 5; }\n        it \"test name\" {\n            assert_eq!(context, 5);\n        }\n\n        context \"context is 6\" {\n            before { let context = 6; }\n            it \"should equal 6\" {\n                assert_eq!(context, 6);\n            }\n        }\n    }\n}\n\n// # Expand\nmod test_module_name {\n    #[test]\n    fn test_name() {\n        let context = 5;\n\n        assert_eq(context + 5, 10)\n    }\n}\n\nmod test_module_2 {\n    #[test]\n    fn test_name() {\n        let context = 5;\n\n        assert_eq(context, 10)\n    }\n\n    mod context_is_6 {\n        #[test]\n        fn should_equal_6() {\n            let context = 6;\n            assert_eq!(context, 6)\n        }\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk-nasa%2Fruspec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fk-nasa%2Fruspec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk-nasa%2Fruspec/lists"}