{"id":37021663,"url":"https://github.com/hgcummings/jarspec","last_synced_at":"2026-01-14T02:34:12.951Z","repository":{"id":18554267,"uuid":"21755888","full_name":"hgcummings/jarspec","owner":"hgcummings","description":"RSpec (or Jasmine/Mocha) style tests for native Java 8","archived":false,"fork":false,"pushed_at":"2017-09-16T07:11:06.000Z","size":821,"stargazers_count":2,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-24T00:56:17.350Z","etag":null,"topics":["java","test-automation","test-driven-development","test-framework","test-runner","testing","testing-framework","testing-tools"],"latest_commit_sha":null,"homepage":"","language":"Java","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/hgcummings.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}},"created_at":"2014-07-12T00:20:37.000Z","updated_at":"2017-05-10T23:13:02.000Z","dependencies_parsed_at":"2022-08-23T20:30:35.701Z","dependency_job_id":null,"html_url":"https://github.com/hgcummings/jarspec","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/hgcummings/jarspec","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hgcummings%2Fjarspec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hgcummings%2Fjarspec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hgcummings%2Fjarspec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hgcummings%2Fjarspec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hgcummings","download_url":"https://codeload.github.com/hgcummings/jarspec/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hgcummings%2Fjarspec/sbom","scorecard":{"id":463536,"data":{"date":"2025-08-11","repo":{"name":"github.com/hgcummings/jarspec","commit":"421dbe7f23bd6ac889d670eab442fbc5522ba80e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.9,"checks":[{"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":"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":"Code-Review","score":0,"reason":"Found 1/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":"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":"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":"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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"}},{"name":"Vulnerabilities","score":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-269g-pwp5-87pp"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-19T11:50:01.610Z","repository_id":18554267,"created_at":"2025-08-19T11:50:01.610Z","updated_at":"2025-08-19T11:50:01.610Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408711,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"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":["java","test-automation","test-driven-development","test-framework","test-runner","testing","testing-framework","testing-tools"],"created_at":"2026-01-14T02:34:12.308Z","updated_at":"2026-01-14T02:34:12.940Z","avatar_url":"https://github.com/hgcummings.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ![JarSpec](http://hgc.io/jarspec/2.1.0-SNAPSHOT/images/logo.svg)\r\n\r\n## What?\r\n[RSpec](http://rspec.info/) (or [Jasmine](http://jasmine.github.io/2.0/introduction.html)/[Mocha](http://mochajs.org/)) style tests for native Java 8, a bit like the following:\r\n\r\n```java\r\n@RunWith(JarSpecJUnitRunner.class)\r\npublic class MinimalSpec implements Specification {\r\n    @Override\r\n    public SpecificationNode root() {\r\n        return describe(\"This specification\",\r\n            it(\"contains a statement with a test\", () -\u003e assertTrue(true))\r\n        );\r\n    }\r\n}\r\n```\r\n\r\n## Why?\r\n\r\nAllows for more expressive test names without very_long_underscore_ridden_test_method_names, and for more flexible test structure. Java 8 features such as lambda expressions make this possible with less boilerplate. See [wiki/Motivation](https://github.com/hgcummings/jarspec/wiki/Motivation) for more.\r\n\r\n## How?\r\n\r\n1. Add JarSpec to your project dependencies. See below for Maven and [the dependency info page](http://hgc.io/jarspec/2.0.0/dependency-info.html) for other build tools.\r\n\r\n2. Start writing specs! See [wiki/Implementing Specifications](https://github.com/hgcummings/jarspec/wiki/Implementing-Specifications) for more details, or the [project's own tests](https://github.com/hgcummings/jarspec/tree/master/src/test/java/io/hgc/jarspec) for examples.\r\n\r\n### Using Maven [![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.hgc/jarspec/badge.svg)](http://search.maven.org/#search|gav|1|g:\"io.hgc\"%20AND%20a:\"jarspec\")\r\n\r\nAdd the dependency to your pom:\r\n\r\n```xml\r\n    \u003cdependencies\u003e\r\n        ....\r\n        \u003cdependency\u003e\r\n            \u003cgroupId\u003eio.hgc\u003c/groupId\u003e\r\n            \u003cartifactId\u003ejarspec\u003c/artifactId\u003e\r\n            \u003cversion\u003e2.0.0\u003c/version\u003e\r\n            \u003cscope\u003etest\u003c/scope\u003e\r\n        \u003c/dependency\u003e\r\n        ....\r\n    \u003c/dependencies\u003e\r\n```\r\n\r\nConfigure SureFire to pick up classes named `*Spec` (although you can stick with the default `*Test` convention if you prefer):\r\n\r\n```xml\r\n    \u003cbuild\u003e\r\n        \u003cplugins\u003e\r\n            ...\r\n            \u003cplugin\u003e\r\n                \u003cgroupId\u003eorg.apache.maven.plugins\u003c/groupId\u003e\r\n                \u003cartifactId\u003emaven-surefire-plugin\u003c/artifactId\u003e\r\n                \u003cversion\u003e2.20\u003c/version\u003e\r\n                \u003cconfiguration\u003e\r\n                    \u003cincludes\u003e\r\n                        \u003cinclude\u003e**/*Spec.java\u003c/include\u003e\r\n                    \u003c/includes\u003e\r\n                \u003c/configuration\u003e\r\n            \u003c/plugin\u003e\r\n            ...\r\n        \u003c/plugins\u003e\r\n    \u003c/build\u003e\r\n```\r\n\r\n## When?\r\n\r\nThe current release on Maven Central is stable. See [open milestones](https://github.com/hgcummings/jarspec/milestones) for further planned features. Releases numbers follow the [Semantic Versioning](http://semver.org/) specification for backwards compatibility.\r\n\r\n---\r\n###### Developer resources: [Test results](http://hgc.io/jarspec/2.1.0-SNAPSHOT/surefire-report.html) [![Build status](https://travis-ci.org/hgcummings/jarspec.svg?branch=master)](https://travis-ci.org/hgcummings/jarspec) [Coverage report](http://hgc.io/jarspec/2.1.0-SNAPSHOT/jacoco/index.html) [![Coverage Status](https://coveralls.io/repos/hgcummings/jarspec/badge.png?branch=master)](https://coveralls.io/r/hgcummings/jarspec?branch=master) [Task board](https://huboard.com/hgcummings/jarspec)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhgcummings%2Fjarspec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhgcummings%2Fjarspec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhgcummings%2Fjarspec/lists"}