Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alejandrohdezma/sbt-scripted-munit
SBT plugin to enable using MUnit to test your SBT plugins
https://github.com/alejandrohdezma/sbt-scripted-munit
munit sbt sbt-plugin scala scripted testing
Last synced: 11 days ago
JSON representation
SBT plugin to enable using MUnit to test your SBT plugins
- Host: GitHub
- URL: https://github.com/alejandrohdezma/sbt-scripted-munit
- Owner: alejandrohdezma
- License: apache-2.0
- Created: 2022-11-22T07:54:14.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-15T05:21:21.000Z (9 months ago)
- Last Synced: 2024-05-21T04:13:46.792Z (8 months ago)
- Topics: munit, sbt, sbt-plugin, scala, scripted, testing
- Language: Scala
- Homepage:
- Size: 72.3 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
SBT plugin to enable using MUnit to test your SBT plugins
## Usage
Create a scripted test for your SBT plugin following the
[official guide](https://www.scala-sbt.org/1.x/docs/Testing-sbt-plugins.html).Add the following line to the `plugins.sbt` file of your scripted test:
```sbt
addSbtPlugin("com.alejandrohdezma" % "sbt-scripted-munit" % "0.3.0")
```Add some tests to `build.sbt`:
```scala
munitSuites += "MySuite" -> new FunSuite {test("The most important question") {
assertEquals("The meaning of life, the universe and everything else", "42")
}}
```Add this to your `test` file so MUnit suites are executed:
```
> munitScripted
```## Contributors to this project
| |
| :--: |
| alejandrohdezma |