{"id":19249009,"url":"https://github.com/sbt/sbt-testng","last_synced_at":"2025-04-21T12:30:51.556Z","repository":{"id":65211898,"uuid":"13716695","full_name":"sbt/sbt-testng","owner":"sbt","description":"Implementation of the sbt testing interface for TestNG, bundled with an sbt plug-in for convenience.","archived":false,"fork":false,"pushed_at":"2020-12-01T16:22:59.000Z","size":97,"stargazers_count":9,"open_issues_count":5,"forks_count":15,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-04-29T22:23:23.264Z","etag":null,"topics":["sbt","sbt-plugin","scala","testng"],"latest_commit_sha":null,"homepage":null,"language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sbt.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":"2013-10-20T09:46:00.000Z","updated_at":"2024-04-29T22:23:23.265Z","dependencies_parsed_at":"2023-01-16T14:52:29.601Z","dependency_job_id":null,"html_url":"https://github.com/sbt/sbt-testng","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbt%2Fsbt-testng","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbt%2Fsbt-testng/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbt%2Fsbt-testng/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbt%2Fsbt-testng/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sbt","download_url":"https://codeload.github.com/sbt/sbt-testng/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223863905,"owners_count":17216234,"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":["sbt","sbt-plugin","scala","testng"],"created_at":"2024-11-09T18:12:04.156Z","updated_at":"2024-11-09T18:12:05.633Z","avatar_url":"https://github.com/sbt.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sbt-testng-interface - Testing via TestNG in sbt\n\n[![Build Status](https://travis-ci.org/sbt/sbt-testng.svg?branch=master)](https://travis-ci.org/sbt/sbt-testng)\n\nThis is an implementation of the [sbt test interface](https://github.com/sbt/test-interface) for testing with **[TestNG](http://testng.org)**.\n\nIf you're developing in Scala, you can use [Specs2](http://specs2.org) and be happy. However, if you're sentenced to Java, TestNG is a very good alternative to JUnit.\n\n## Usage\n\nThanks to @asflierl, there is now a convenience sbt plugin which greatly simplifies configuring the testng test interface.\n\nVersion 3.1.1 works with sbt 0.13.5 or higher.\n\nAdd the following to your project's `plugins.sbt` file:\n\n```scala\naddSbtPlugin(\"de.johoop\" % \"sbt-testng-plugin\" % \"3.1.1\")\n```\n\nAdd the following to your project's `build.sbt` file:\n\n```scala\nenablePlugins(TestNGPlugin)\n```\n\nYou can configure TestNG via the settings keys below.\n\nWhen done, run your tests in sbt as usual via **`sbt test`**.\n\n## Settings\n\n### `testNGVersion`\n\n* *Description:* Version of TestNG to use for the tests.\n* *Accepts:* `String`\n* *Default:* `\"6.11\"`\n\n### `testNGOutputDirectory`\n\n* *Description:* Where TestNG stores its test result files.\n* *Accepts:* `String`\n* *Default:* `\"target/testng\"`\n\n### `testNGParameters`\n\n* *Description:* Additional TestNG parameters.\n* *Accepts:* `Seq[String]`\n* *Default:* `Seq()`\n\n### `testNGSuites`\n\n* *Description:* TestNG test suite file paths (yaml or xml).\n* *Accepts:* `Seq[String]`\n* *Default:* `Seq(\"src/test/resources/testng.yaml\")`\n\n## Note\n\nTestNG uses its own test runner wich works in a very different way compared to the one from sbt. This means that the interface implementation is kind of a hack.\n\nThis also means that executing single tests via**`sbt test-only`** won't work. Please use the options of TestNG instead.\n\n## License\n\nCopyright (c) 2011-2017 Joachim Hofer \u0026 contributors\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions\nare met:\n1. Redistributions of source code must retain the above copyright\n   notice, this list of conditions and the following disclaimer.\n2. Redistributions in binary form must reproduce the above copyright\n   notice, this list of conditions and the following disclaimer in the\n   documentation and/or other materials provided with the distribution.\n3. The names of the authors may not be used to endorse or promote products\n   derived from this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR\nIMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES\nOF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.\nIN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,\nINCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT\nNOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\nDATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\nTHEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF\nTHIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsbt%2Fsbt-testng","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsbt%2Fsbt-testng","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsbt%2Fsbt-testng/lists"}