{"id":25531674,"url":"https://github.com/helmethair-co/scalatest-junit-runner","last_synced_at":"2025-04-11T11:06:00.260Z","repository":{"id":38460682,"uuid":"243851164","full_name":"helmethair-co/scalatest-junit-runner","owner":"helmethair-co","description":"JUnit 5 runner for Scalatest","archived":false,"fork":false,"pushed_at":"2024-05-10T08:27:48.000Z","size":368,"stargazers_count":37,"open_issues_count":8,"forks_count":10,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-11-15T09:49:17.402Z","etag":null,"topics":["gradle","gradle-plugin","junit","junit-5","junit-platform","junit-runner","junit-test","junit-tests","scala","scalatest","scalatest-junit-runner","scalatesting","test","testing","testing-library","testing-tool","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/helmethair-co.png","metadata":{"files":{"readme":"README.md","changelog":null,"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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-02-28T20:43:39.000Z","updated_at":"2024-05-27T01:54:36.000Z","dependencies_parsed_at":"2024-11-15T09:49:02.608Z","dependency_job_id":null,"html_url":"https://github.com/helmethair-co/scalatest-junit-runner","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helmethair-co%2Fscalatest-junit-runner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helmethair-co%2Fscalatest-junit-runner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helmethair-co%2Fscalatest-junit-runner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helmethair-co%2Fscalatest-junit-runner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/helmethair-co","download_url":"https://codeload.github.com/helmethair-co/scalatest-junit-runner/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239758890,"owners_count":19692041,"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","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":["gradle","gradle-plugin","junit","junit-5","junit-platform","junit-runner","junit-test","junit-tests","scala","scalatest","scalatest-junit-runner","scalatesting","test","testing","testing-library","testing-tool","testing-tools"],"created_at":"2025-02-20T01:19:29.936Z","updated_at":"2025-02-20T01:19:30.656Z","avatar_url":"https://github.com/helmethair-co.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ScalaTest Junit 5 runner\n[![Tests](https://github.com/helmethair-co/scalatest-junit-runner/workflows/Test/badge.svg)](https://github.com/helmethair-co/scalatest-junit-runner/actions?query=workflow%3A%22Test%22+branch%3Amain+event%3Apush)\n[![codecov](https://codecov.io/gh/helmethair-co/scalatest-junit-runner/branch/main/graph/badge.svg)](https://codecov.io/gh/helmethair-co/scalatest-junit-runner)\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/co.helmethair/scalatest-junit-runner/badge.svg)](https://maven-badges.herokuapp.com/maven-central/co.helmethair/scalatest-junit-runner)\n\n[JUnit 5](https://junit.org/junit5/docs/current/user-guide/) runner library for [ScalaTest](http://www.scalatest.org/) tests. It can be used to fully [integrate ScalaTest into Gradle](https://www.baeldung.com/junit-5-gradle) (version \u003e= 4.5) and to Maven. \n\nThere is an open [issue](https://github.com/scalatest/scalatest/issues/1454) to natively support JUnit 5 in ScalaTest without this library.\n\n## Getting Started\n\n## Features\n* Running ScalaTest test on the Junit 5 platform\n* Fully integrate ScalaTest into gradle\n* Report individual test runs\n* Report errors to JUnit 5 with stack traces\n* Support ScalaTest tags\n* Optional early stopping after the first test fail\n\n## How to use\n\n### Gradle\nversion \u003e= 4.5\nThis library allows to run ScalaTest on the new JUnit Platform (JUnit 5) \nTo run ScalaTest on the old JUnit Vintage (JUnit 4) platform use the [gradle-scalatest](https://plugins.gradle.org/plugin/com.github.maiflai.scalatest) Gradle plugin.\n\n#### Groovy\ngradle.properties\n```properties\nscala_lib_version=2.12\nscala_version=2.12.10\njunit_platform_version=1.6.0\n```\n\nbuild.gradle\n```groovy\nplugins {\n    id 'scala'\n}\n\nrepositories {\n    jcenter()\n}\n\ndependencies {\n    implementation \"org.scala-lang:scala-library:$scala_version\"\n\n    testImplementation \"org.scalatest:scalatest_$scala_lib_version:3.2.0-M3\"\n    testRuntime \"org.junit.platform:junit-platform-engine:$junit_platform_version\"\n    testRuntime \"org.junit.platform:junit-platform-launcher:$junit_platform_version\"\n    testRuntime \"co.helmethair:scalatest-junit-runner:0.1.11\"\n}\n\ntest {\n    useJUnitPlatform {\n        includeEngines 'scalatest'\n        testLogging {\n            events(\"passed\", \"skipped\", \"failed\")\n        }\n    }\n}\n```\n\nSee [example Groovy Gradle project](https://github.com/helmethair-co/scalatest-junit-runner/tree/master/gradle-example)\n\n#### Kotlin DSL\nbuild.gradle.kts\n```kotlin\n...\ntasks {\n    test{\n        useJUnitPlatform {\n            includeEngines(\"scalatest\")\n            testLogging {\n                events(\"passed\", \"skipped\", \"failed\")\n            }\n        }\n    }\n}\n```\n\nSee [example Kotlin DSL Gradle project](https://github.com/helmethair-co/scalatest-junit-runner/tree/master/gradle-kotlin-dsl-example)\n\n### Maven\n\nSurefire plugin version \u003e= 2.22.0\n\npom.xml\n```xml\n\u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\n\u003cproject ...\n    \u003cdependencies\u003e\n        \u003cdependency\u003e\n            \u003cgroupId\u003eorg.scala-lang\u003c/groupId\u003e\n            \u003cartifactId\u003escala-library\u003c/artifactId\u003e\n            \u003cversion\u003e${scala.version}\u003c/version\u003e\n            \u003cscope\u003ecompile\u003c/scope\u003e\n        \u003c/dependency\u003e\n\n        \u003c!-- junit 5 --\u003e\n        \u003cdependency\u003e\n            \u003cgroupId\u003eorg.junit.platform\u003c/groupId\u003e\n            \u003cartifactId\u003ejunit-platform-engine\u003c/artifactId\u003e\n            \u003cversion\u003e${junit.version}\u003c/version\u003e\n            \u003cscope\u003etest\u003c/scope\u003e\n        \u003c/dependency\u003e\n        \u003c!-- scalatest --\u003e\n        \u003cdependency\u003e\n            \u003cgroupId\u003eorg.scalatest\u003c/groupId\u003e\n            \u003cartifactId\u003escalatest_${scala.compat.version}\u003c/artifactId\u003e\n            \u003cversion\u003e${scalatest.version}\u003c/version\u003e\n            \u003cscope\u003etest\u003c/scope\u003e\n        \u003c/dependency\u003e\n        \u003c!-- scalatest junit 5 runner --\u003e\n        \u003cdependency\u003e\n            \u003cgroupId\u003eco.helmethair\u003c/groupId\u003e\n            \u003cartifactId\u003escalatest-junit-runner\u003c/artifactId\u003e\n            \u003cversion\u003e${scalatest.runner.version}\u003c/version\u003e\n            \u003cscope\u003etest\u003c/scope\u003e\n        \u003c/dependency\u003e\n    \u003c/dependencies\u003e\n    \u003cbuild\u003e\n        \u003csourceDirectory\u003esrc/main/scala\u003c/sourceDirectory\u003e\n        \u003ctestSourceDirectory\u003esrc/test/scala\u003c/testSourceDirectory\u003e\n        \u003cplugins\u003e\n        ...\n            \u003cplugin\u003e\n                \u003cgroupId\u003eorg.apache.maven.plugins\u003c/groupId\u003e\n                \u003cartifactId\u003emaven-surefire-plugin\u003c/artifactId\u003e\n                \u003cversion\u003e${maven.surefire.version}\u003c/version\u003e\n            \u003c/plugin\u003e\n            ...\n        \u003c/plugins\u003e\n    \u003c/build\u003e\n\u003c/project\u003e\n\n```\n\nSee [example maven project](https://github.com/helmethair-co/scalatest-junit-runner/tree/main/maven-example)\n\n### JUnit console\n\nAdd the library to the classpath and run your test\n\n\n## Built With\n\n* [ScalaTest](http://www.scalatest.org)\n* [Kotlin](http://kotlinlang.org/) - Kotlin DSL for Gradle\n* [Gradle](http://gradle.org/) - Build tool\n* [Gradle Test Logger Plugin](https://plugins.gradle.org/plugin/com.adarshr.test-logger) \n* [semver-git-plugin](https://github.com/ilovemilk/semver-git-plugin)\n\n\n## Contributing\n\nPlease read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.\n\nWe use [semantic versioning](http://semver.org/).\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) for details\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhelmethair-co%2Fscalatest-junit-runner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhelmethair-co%2Fscalatest-junit-runner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhelmethair-co%2Fscalatest-junit-runner/lists"}