{"id":51536581,"url":"https://github.com/testng-team/testng-asserts","last_synced_at":"2026-07-09T09:01:04.924Z","repository":{"id":368393966,"uuid":"1278384168","full_name":"testng-team/testng-asserts","owner":"testng-team","description":null,"archived":false,"fork":false,"pushed_at":"2026-06-30T10:14:27.000Z","size":115,"stargazers_count":0,"open_issues_count":12,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-30T12:12:24.447Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/testng-team.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-23T18:33:08.000Z","updated_at":"2026-06-30T10:14:29.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/testng-team/testng-asserts","commit_stats":null,"previous_names":["testng-team/testng-asserts"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/testng-team/testng-asserts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/testng-team%2Ftestng-asserts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/testng-team%2Ftestng-asserts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/testng-team%2Ftestng-asserts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/testng-team%2Ftestng-asserts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/testng-team","download_url":"https://codeload.github.com/testng-team/testng-asserts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/testng-team%2Ftestng-asserts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35293217,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-09T02:00:07.329Z","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":"2026-07-09T09:01:04.082Z","updated_at":"2026-07-09T09:01:04.901Z","avatar_url":"https://github.com/testng-team.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TestNG Asserts\n\nThis repository houses the standalone TestNG assertion library: `org.testng.Assert`,\n`org.testng.asserts.SoftAssert` and the related assertion classes.\n\nThese classes were historically bundled inside the main `org.testng:testng` artifact. They now\nlive here and are published as the standalone `org.testng:testng-asserts` artifact so they can\nevolve and be released independently.\n\n## Pre-requisites\n\n* JDK 11 (or higher)\n\n`org.testng.Assert` delegates the behaviour-identical assertions (`assertNull`/`assertNotNull`/\n`assertSame`/`assertNotSame`, `assertThrows`) to [AssertJ](https://assertj.github.io/doc/), so\n`assertj-core` is the only runtime dependency (brought transitively). TestNG is required at **test\nscope** only (to run the assertion tests via the TestNG runner).\n\n## Usage\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003eorg.testng\u003c/groupId\u003e\n    \u003cartifactId\u003etestng-asserts\u003c/artifactId\u003e\n    \u003cversion\u003e1.0.0\u003c/version\u003e\n    \u003cscope\u003etest\u003c/scope\u003e\n\u003c/dependency\u003e\n```\n\n## Migration\n\nIf you previously relied on `org.testng.Assert` / `org.testng.asserts.*` coming transitively from\n`org.testng:testng`, add `org.testng:testng-asserts` explicitly.\n\nFor new code or larger refactoring efforts, [AssertJ](https://assertj.github.io/doc/) is recommended.\nSee [docs/MIGRATING_ASSERTIONS.md](docs/MIGRATING_ASSERTIONS.md) for the migration guide, including\nthe automated OpenRewrite recipe.\n\n## Building\n\n```bash\n./mvnw clean test\n```\n\n## Releasing\n\nArtifacts are published to Maven Central through the\n[Central Portal](https://central.sonatype.com/), using two workflows.\n\n### Snapshots (automatic)\n\nThe `deploy.yml` workflow runs on every push to `main` and publishes the current\n`-SNAPSHOT` version to the Central Portal snapshot repository. It is guarded to only\ndeploy when the project version ends with `-SNAPSHOT`, so release commits pushed to\n`main` are skipped (no double publish).\n\n### Releases (manual)\n\nThe `release.yml` workflow performs a release on demand. From the GitHub\n*Actions* tab, select **Release → Run workflow** and optionally provide:\n\n* `releaseVersion` — the version to release (e.g. `1.0.0`). Defaults to the current\n  version without `-SNAPSHOT`.\n* `nextVersion` — the next development version (e.g. `1.0.1-SNAPSHOT`). Defaults to\n  the release patch + 1 with `-SNAPSHOT`.\n\nThe workflow then sets the release version, builds and verifies, deploys the release\nto Maven Central (staged and auto-published), commits and pushes the `vX.Y.Z` tag,\ncreates a matching GitHub Release with auto-generated notes, and finally bumps the\nversion back to the next `-SNAPSHOT` on `main`.\n\nRemember to move the relevant entries from the `[Unreleased]` section of\n[`CHANGELOG.md`](CHANGELOG.md) into a new version section before releasing.\n\n### Required secrets\n\nThe following repository (or organization) secrets must be configured:\n\n* `MAVEN_USERNAME` / `MAVEN_PASSWORD` — a [Central Portal user token](https://central.sonatype.com/account)\n  (Account → Generate User Token). These are **not** the legacy OSSRH credentials.\n* `GPG_PRIVATE_KEY` — the ASCII-armored GPG private key used to sign artifacts.\n* `GPG_PASSPHRASE` — the passphrase for that key.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftestng-team%2Ftestng-asserts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftestng-team%2Ftestng-asserts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftestng-team%2Ftestng-asserts/lists"}