{"id":25776965,"url":"https://github.com/mscharhag/oleaster","last_synced_at":"2026-01-10T20:01:31.851Z","repository":{"id":57726773,"uuid":"20976421","full_name":"mscharhag/oleaster","owner":"mscharhag","description":"Write Java JUnit tests in Jasmine style","archived":false,"fork":false,"pushed_at":"2017-09-23T13:05:08.000Z","size":304,"stargazers_count":123,"open_issues_count":10,"forks_count":15,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-07-07T14:52:13.455Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mscharhag.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-06-18T20:09:46.000Z","updated_at":"2025-03-10T19:10:56.000Z","dependencies_parsed_at":"2022-09-26T21:51:01.387Z","dependency_job_id":null,"html_url":"https://github.com/mscharhag/oleaster","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/mscharhag/oleaster","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mscharhag%2Foleaster","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mscharhag%2Foleaster/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mscharhag%2Foleaster/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mscharhag%2Foleaster/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mscharhag","download_url":"https://codeload.github.com/mscharhag/oleaster/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mscharhag%2Foleaster/sbom","scorecard":{"id":665376,"data":{"date":"2025-08-11","repo":{"name":"github.com/mscharhag/oleaster","commit":"ce8c6fe2346cd0c0cf5f641417ff85019d1d09ac"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.6,"checks":[{"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":"Code-Review","score":5,"reason":"Found 4/8 approved changesets -- score normalized to 5","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":"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":"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":"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":"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":"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":"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: Apache License 2.0: 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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 26 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"}},{"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"}}]},"last_synced_at":"2025-08-21T17:50:06.030Z","repository_id":57726773,"created_at":"2025-08-21T17:50:06.030Z","updated_at":"2025-08-21T17:50:06.030Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28257658,"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","status":"online","status_checked_at":"2026-01-10T02:00:06.867Z","response_time":57,"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":"2025-02-27T06:01:33.502Z","updated_at":"2026-01-10T20:01:31.756Z","avatar_url":"https://github.com/mscharhag.png","language":"Java","funding_links":[],"categories":["测试"],"sub_categories":[],"readme":"Oleaster\n=====\n\nOleaster allows you to write JUnit tests like you would write [Jasmine](http://jasmine.github.io/) tests.\n\nAn Oleaster JUnit test looks like this:\n\n```java\n@RunWith(OleasterRunner.class)\npublic class OleasterIntroductionTest {{\n\tdescribe(\"A suite\", () -\u003e {\n\t\tit(\"contains a spec with an expectation\", () -\u003e {\n\t\t\texpect(40 + 2).toEqual(42);\n\t\t});\n\t});\n}}\n```\n\nOleaster consists out of two independent libraries:\n\nThe [Oleaster JUnit Runner](https://github.com/mscharhag/oleaster/tree/master/oleaster-runner) gives you the option\n to write JUnit tests in the format shown above. Java 8 Lambda expressions are used to structure a test in suites\n and specifications.\n \n[Oleaster-Matcher](https://github.com/mscharhag/oleaster/tree/master/oleaster-matcher)\n provides Jasmine-like Matchers (`expect(..).toEqual(..)`) to validate test results. These Matchers can be used\n as a replacement (or extension) for standard JUnit assertions.\n\n## Documentation and examples\n\n[Oleaster JUnit Runner Documentation](https://github.com/mscharhag/oleaster/blob/master/oleaster-runner/README.md)\n\n[Oleaster Matcher Documentation](https://github.com/mscharhag/oleaster/blob/master/oleaster-matcher/README.md)\n\n[Source of the AudioPlayer example](https://github.com/mscharhag/oleaster/blob/master/oleaster-examples/src/test/java/com/mscharhag/oleaster/examples/AudioPlayerExampleTest.java) from the Oleaster Runner documentation.\n\nOleaster tests are (mostly) written with Oleaster (see: [Oleaster JUnit Runner Tests](https://github.com/mscharhag/oleaster/tree/master/oleaster-runner/src/test/java/com/mscharhag/oleaster/runner) and [Oleaster Matcher Tests](https://github.com/mscharhag/oleaster/tree/master/oleaster-matcher/src/test/java/com/mscharhag/oleaster/matcher/matchers)).\n\nTravis CI builds can be found [here](https://travis-ci.org/mscharhag/oleaster)\n\n## Maven dependencies\n```xml\n\u003cdependencies\u003e\n\n\t\u003c!-- Oleaster Matchers --\u003e\n\t\u003cdependency\u003e\n\t\t\u003cgroupId\u003ecom.mscharhag.oleaster\u003c/groupId\u003e\n\t\t\u003cartifactId\u003eoleaster-matcher\u003c/artifactId\u003e\n\t\t\u003cversion\u003e0.2.0\u003c/version\u003e\n    \t\u003c/dependency\u003e\n    \n\t\u003c!-- Oleaster JUnit runner --\u003e\n\t\u003cdependency\u003e\n\t\t\u003cgroupId\u003ecom.mscharhag.oleaster\u003c/groupId\u003e\n\t\t\u003cartifactId\u003eoleaster-runner\u003c/artifactId\u003e\n\t\t\u003cversion\u003e0.2.0\u003c/version\u003e\n\t\u003c/dependency\u003e\n\n\t\u003c!-- Of course a JUnit runner can only be used with JUnit --\u003e\n\t\u003cdependency\u003e\n\t\t\u003cgroupId\u003ejunit\u003c/groupId\u003e\n\t\t\u003cartifactId\u003ejunit\u003c/artifactId\u003e\n\t\t\u003cversion\u003e4.11\u003c/version\u003e\n\t\u003c/dependency\u003e\n\t\n\u003c/dependencies\u003e\n```\n\n## License\n\nThis software is licensed under the Apache 2 license, quoted below.\n\nCopyright 2017 Michael Scharhag\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmscharhag%2Foleaster","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmscharhag%2Foleaster","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmscharhag%2Foleaster/lists"}