{"id":25776897,"url":"https://github.com/ota4j-team/opentest4j","last_synced_at":"2026-01-14T03:42:55.083Z","repository":{"id":47679643,"uuid":"47778018","full_name":"ota4j-team/opentest4j","owner":"ota4j-team","description":"Common Java exception classes to represent test failures. Maintained by the JUnit team.","archived":false,"fork":false,"pushed_at":"2026-01-11T18:06:06.000Z","size":1629,"stargazers_count":298,"open_issues_count":24,"forks_count":38,"subscribers_count":34,"default_branch":"main","last_synced_at":"2026-01-12T02:55:55.627Z","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/ota4j-team.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":"COPYRIGHT","agents":null,"dco":null,"cla":null},"funding":{"custom":"https://junit.org/sponsoring"}},"created_at":"2015-12-10T17:48:35.000Z","updated_at":"2026-01-11T18:06:10.000Z","dependencies_parsed_at":"2025-12-14T11:01:14.793Z","dependency_job_id":null,"html_url":"https://github.com/ota4j-team/opentest4j","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/ota4j-team/opentest4j","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ota4j-team%2Fopentest4j","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ota4j-team%2Fopentest4j/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ota4j-team%2Fopentest4j/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ota4j-team%2Fopentest4j/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ota4j-team","download_url":"https://codeload.github.com/ota4j-team/opentest4j/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ota4j-team%2Fopentest4j/sbom","scorecard":{"id":321897,"data":{"date":"2025-08-11","repo":{"name":"github.com/ota4j-team/opentest4j","commit":"65e288bff9ae96a9c5e8085417026ba650df5e27"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":6.7,"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":"Token-Permissions","score":10,"reason":"GitHub workflow tokens follow principle of least privilege","details":["Warn: jobLevel 'contents' permission set to 'write': .github/workflows/main.yml:72","Info: found token with 'none' permissions: .github/workflows/main.yml:1"],"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":"Code-Review","score":0,"reason":"Found 0/5 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":"Maintained","score":10,"reason":"25 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"Binary-Artifacts","score":9,"reason":"binaries present in source code","details":["Warn: binary detected: gradle/wrapper/gradle-wrapper.jar:1"],"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":"Pinned-Dependencies","score":10,"reason":"all dependencies are pinned","details":["Info:   5 out of   5 GitHub-owned GitHubAction dependencies pinned"],"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":"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":"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":5,"reason":"branch protection is not maximal on development and all release branches","details":["Info: 'allow deletion' disabled on branch 'main'","Info: 'force pushes' disabled on branch 'main'","Warn: 'branch protection settings apply to administrators' is disabled on branch 'main'","Warn: 'stale review dismissal' is disabled on branch 'main'","Warn: required approving review count is 1 on branch 'main'","Warn: codeowners review is not required on branch 'main'","Warn: 'last push approval' is disabled on branch 'main'","Warn: no status checks found to merge onto branch 'main'","Info: PRs are required in order to make changes on branch 'main'"],"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":6,"reason":"SAST tool is not run on all commits -- score normalized to 6","details":["Warn: 15 commits out of 25 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-18T01:34:55.968Z","repository_id":47679643,"created_at":"2025-08-18T01:34:55.968Z","updated_at":"2025-08-18T01:34:55.968Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408709,"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":[],"created_at":"2025-02-27T06:01:32.881Z","updated_at":"2026-01-14T03:42:55.076Z","avatar_url":"https://github.com/ota4j-team.png","language":"Java","funding_links":["https://junit.org/sponsoring"],"categories":["测试"],"sub_categories":[],"readme":"# Open Test Alliance for the JVM\n\n## History\n\nThis project is the result of an initiative by the [JUnit team](https://github.com/junit-team/junit5/issues/12).\n\n## Status Quo\n\nThere is no standard for testing on the JVM: the only common building block we have is `java.lang.AssertionError`.\n\n`AssertionError` is great for signaling that a test has failed, but it doesn't go far enough. Each testing framework is therefore forced to fill the gap with custom subclasses of `AssertionError` or `RuntimeException` to provide a richer feature set to end users. The downside is that each framework has its **own** set of custom errors and exceptions, and this makes it a challenge for frameworks to interoperate.\n\nFor example, JUnit has long supported the notion of a _failed assumption_ via its `AssumptionViolatedException`, but assertion frameworks like AssertJ cannot integrate that feature without a direct dependency on JUnit. Furthermore, the status quo makes the work of IDEs and build tools more difficult than it should be.\n\n## Proposal\n\nThe only real solution to this problem is to create a foundation that we can all build on!\n\nBased on discussions with IDE and build tool developers from Eclipse, Gradle, and IntelliJ, the JUnit 5 team is working on a proposal for an open source project to provide a minimal common foundation for testing libraries on the JVM. The primary goal of the project is to enable testing frameworks like JUnit, TestNG, Spock, etc. and third-party assertion libraries like Hamcrest, AssertJ, etc. to use a common set of exceptions that IDEs and build tools can support in a consistent manner across all testing scenarios -- for example, for consistent handling of failed assertions and failed assumptions as well as visualization of test execution in IDEs and reports.\n\n## Initial Implementation\n\nWe have begun with a small set of errors and exceptions that we consider to be common for all testing and assertion frameworks. In fact, these errors and exceptions are already used in [JUnit 5]. Please take a look at the project and let us know what you think.\n\n## Javadocs\n\n- [Latest release](http://ota4j-team.github.io/opentest4j/docs/current/api/)\n- [Latest snapshot](http://ota4j-team.github.io/opentest4j/docs/snapshot/api/)\n\n## Contributing\n\nContributions to the Open Test Alliance are both welcomed and appreciated. For specific\nguidelines regarding contributions, please see [CONTRIBUTING.md] in the root directory of\nthe project. Those willing to use milestone or SNAPSHOT releases are encouraged to file\nfeature requests and bug reports using the project's\n[issue tracker](https://github.com/ota4j-team/opentest4j/issues).\n\n### Feedback is welcome!\n\nWhat types of _errors_ and _exceptions_ should the OTA support?\n\nWhat types of properties should such errors and exceptions have?\n\nWhat additional functionality (e.g., interfaces, utility methods, etc.) should the OTA provide?\n\n## Projects already contacted\n\nWe've already reached out to and asked for feedback from the maintainers of the following projects.\n\n- Test NG\n- Hamcrest\n- AssertJ\n- Spock\n- Google Truth\n- ScalaTest\n- Eclipse\n- IntelliJ\n- Gradle\n- Maven Surefire Plugin\n- Allure Framework\n\n# Installation\n\nRelease artifacts are deployed to [Maven Central].\n\nSnapshot artifacts are deployed to Sonatype's [snapshots repository].\n\n## Dependency Metadata\n\n### Latest Release\n\n- **Group ID**: `org.opentest4j`\n- **Artifact ID**: `opentest4j`\n- **Version**: `1.3.0`\n\nSee also: \u003chttp://search.maven.org/#search|ga|1|opentest4j/\u003e\n\n### Snapshots\n\n- **Group ID**: `org.opentest4j`\n- **Artifact ID**: `opentest4j`\n- **Version**: `1.4.0-SNAPSHOT`\n\nSee also: \u003chttps://oss.sonatype.org/content/repositories/snapshots/org/opentest4j/opentest4j/\u003e\n\n[CONTRIBUTING.md]: https://github.com/ota4j-team/opentest4j/blob/master/CONTRIBUTING.md\n[JUnit 5]: https://github.com/junit-team/junit5\n[Maven Central]: http://search.maven.org/\n[snapshots repository]: https://oss.sonatype.org/content/repositories/snapshots/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fota4j-team%2Fopentest4j","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fota4j-team%2Fopentest4j","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fota4j-team%2Fopentest4j/lists"}