{"id":25776309,"url":"https://github.com/shazam/gwen","last_synced_at":"2026-01-11T04:00:15.109Z","repository":{"id":142110627,"uuid":"8411143","full_name":"shazam/gwen","owner":"shazam","description":"Library for specifying acceptance criteria in tests in a Given-When-Then format","archived":false,"fork":false,"pushed_at":"2013-10-23T12:40:28.000Z","size":232,"stargazers_count":111,"open_issues_count":0,"forks_count":12,"subscribers_count":29,"default_branch":"master","last_synced_at":"2025-07-07T11:08:42.467Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shazam.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-02-25T14:52:23.000Z","updated_at":"2024-09-11T08:18:30.000Z","dependencies_parsed_at":"2023-03-12T12:01:27.159Z","dependency_job_id":null,"html_url":"https://github.com/shazam/gwen","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/shazam/gwen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shazam%2Fgwen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shazam%2Fgwen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shazam%2Fgwen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shazam%2Fgwen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shazam","download_url":"https://codeload.github.com/shazam/gwen/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shazam%2Fgwen/sbom","scorecard":{"id":817209,"data":{"date":"2025-08-11","repo":{"name":"github.com/shazam/gwen","commit":"768a5970ecf1b43392d92e3fab85a2aab15b852b"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":0,"reason":"Found 0/29 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-23T14:30:41.889Z","repository_id":142110627,"created_at":"2025-08-23T14:30:41.889Z","updated_at":"2025-08-23T14:30:41.889Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28280250,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T03:48:11.750Z","status":"ssl_error","status_checked_at":"2026-01-11T03:48:02.765Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2025-02-27T06:01:21.299Z","updated_at":"2026-01-11T04:00:14.838Z","avatar_url":"https://github.com/shazam.png","language":"Java","funding_links":[],"categories":["测试"],"sub_categories":[],"readme":"Gwen\n=========\n*Gwen* is a simple library that allows writing acceptance tests in a Given-When-Then syntax.\n\nUsing Gwen, we can transform a very verbose and implementation specific test like this:\n\n```java\npublic void testNotGonnaTellYou() {\n    final Instrumentation instrumentation = getInstrumentation();\n    final Context targetContext = instrumentation.getTargetContext();\n \n    File cacheDir = targetContext.getCacheDir();\n    try {\n        File file1 = File.createTempFile(\"file1\", \"txt\", cacheDir);\n        File file2 = File.createTempFile(\"file2\", \"txt\", cacheDir);\n    } catch (IOException e) {\n        e.printStackTrace();\n        Assert.fail(\"Failed to create files \" + e.getMessage());\n    }\n \n    Intent intent = new Intent(targetContext, DirectoryBrowserActivity.class);\n    intent.setData(Uri.parse(cacheDir.getAbsolutePath()));\n    intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n    targetContext.startActivity(intent);\n \n    final Solo solo = new Solo(instrumentation);\n    final boolean file1Displayed = solo.searchText(\"file1.txt\");\n    final boolean file2Displayed = solo.searchText(\"file2.txt\");\n    if (!file1Displayed || !file2Displayed) {\n        Assert.fail(\"Activity did not display files\");\n    }\n}\n```\n\ninto a readable, reusable, extensible and maintainable test like this:\n\n```java\npublic void testDisplaysDirectoryContents() {\n    given(directory).contains(SOME_FILES);\n     \n    when(user).isViewing(directory);\n     \n    then(user).canSee(THESE_FILES);\n}\n```\n\nLicense\n----\n\nApache v2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshazam%2Fgwen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshazam%2Fgwen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshazam%2Fgwen/lists"}