{"id":17532867,"url":"https://github.com/pureharm/pureharm-testkit","last_synced_at":"2026-01-11T16:56:27.126Z","repository":{"id":48324537,"uuid":"348649275","full_name":"pureharm/pureharm-testkit","owner":"pureharm","description":"testkit for pureharm, based on munit + cats-effect","archived":false,"fork":false,"pushed_at":"2021-08-01T12:05:59.000Z","size":102,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-29T02:21:33.552Z","etag":null,"topics":["cats-effect","munit","pureharm","scala"],"latest_commit_sha":null,"homepage":"","language":"Scala","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/pureharm.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-03-17T09:24:21.000Z","updated_at":"2022-10-28T12:43:12.000Z","dependencies_parsed_at":"2022-08-20T11:01:14.269Z","dependency_job_id":null,"html_url":"https://github.com/pureharm/pureharm-testkit","commit_stats":null,"previous_names":["busymachines/pureharm-testkit"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/pureharm/pureharm-testkit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pureharm%2Fpureharm-testkit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pureharm%2Fpureharm-testkit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pureharm%2Fpureharm-testkit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pureharm%2Fpureharm-testkit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pureharm","download_url":"https://codeload.github.com/pureharm/pureharm-testkit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pureharm%2Fpureharm-testkit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270580079,"owners_count":24610145,"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":"2025-08-15T02:00:12.559Z","response_time":110,"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":["cats-effect","munit","pureharm","scala"],"created_at":"2024-10-20T18:06:16.215Z","updated_at":"2026-01-11T16:56:27.119Z","avatar_url":"https://github.com/pureharm.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pureharm-testkit\n\nSee [changelog](./CHANGELOG.md).\n\n## Scala versions\n\n- `2.13`, JS + JVM\n- `3.0.1`, JS + JVM\n\n## modules\n\n- `\"com.busymachines\" %% s\"pureharm-testkit\" % \"0.4.0\"` (for cats-effect 3). Which has these as its main dependencies:\n  - [munit](https://github.com/scalameta/munit/releases) `0.7.23`\n  - [log4cats-core](https://github.com/typelevel/log4cats/releases) `1.3.1`\n  - [pureharm-core-anomaly](https://github.com/busymachines/pureharm-core/releases) `0.3.0`\n  - [pureharm-core-sprout](https://github.com/busymachines/pureharm-core/releases) `0.3.0`\n  - [pureharm-effects-cats](https://github.com/busymachines/pureharm-effects-cats/releases) `0.5.0`\n\n- `\"com.busymachines\" %% s\"pureharm-testkit-ce2\" % \"0.4.0\"` (for cats-effect 2). Which has these as its main dependencies:\n  - [munit](https://github.com/scalameta/munit/releases) `0.7.23`\n  - [log4cats-core](https://github.com/typelevel/log4cats/releases) `2.1.1`\n  - [pureharm-core-anomaly](https://github.com/busymachines/pureharm-core/releases) `0.3.0`\n  - [pureharm-core-sprout](https://github.com/busymachines/pureharm-core/releases) `0.3.0`\n  - [pureharm-effects-cats](https://github.com/busymachines/pureharm-effects-cats/releases) `0.5.0`\n\n## usage\n\n### :warning: only for sbt version lower than `1.5.0`\nIf you are on sbt versions lower than `1.5.0`, then follow the [munit](https://scalameta.org/munit/docs/getting-started.html) setup to add the appropriate test framework to your build.\n\n```scala\ntestFrameworks += new TestFramework(\"munit.Framework\")\n```\n\n### for sbt versions greater or equal to `1.5.0`, and after the above setup\n\nCreate your own \"testkit\" package. And use that everywhere.\n\n```scala\npackage myapp\n\nimport busymachines.pureharm.testkit\n\npackage object test extends testkit.PureharmTestkitAliases\n\n//-------- EOF --------\n\npackage myapp.test\n\n/**\n * Add any custom assertions, flavors, styles, opiniated decisions\n * here, and continue using this.\n */\nabstract class MyAppTest extends testkit.PureharmTestkit\n\n//-------- EOF --------\n\npackage myapp.somemodule\n\nimport myapp.test._\n\nfinal class MyTest extends MyAppTest {\n  test(\"no resource\")(IO.unit)\n\n  private val myResource =\n    ResourceFixture((to: TestOptions) =\u003e Resource.eval(testLogger.info(s\"Making: $to\") \u003e\u003e Timer[IO].sleep(10.millis)))\n\n  myResource.test(TestOptions(\"with resource\").tag(Slow))((_: Unit) =\u003e testLogger.info(\"Executing test w/ resource\"))\n}\n```\n\nStill under construction. See [release notes](https://github.com/busymachines/pureharm-testkit/releases) and tests for examples.\n\n## Copyright and License\n\nAll code is available to you under the Apache 2.0 license, available\nat [http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0) and also in\nthe [LICENSE](./LICENSE) file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpureharm%2Fpureharm-testkit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpureharm%2Fpureharm-testkit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpureharm%2Fpureharm-testkit/lists"}