Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/galargh/intellij-wordspec-plugin
IntelliJ plugin which allows running single WordSpecLike ScalaTest test cases using Gradle
https://github.com/galargh/intellij-wordspec-plugin
Last synced: 17 days ago
JSON representation
IntelliJ plugin which allows running single WordSpecLike ScalaTest test cases using Gradle
- Host: GitHub
- URL: https://github.com/galargh/intellij-wordspec-plugin
- Owner: galargh
- License: mit
- Created: 2020-05-27T14:27:47.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-01-06T07:03:57.000Z (about 3 years ago)
- Last Synced: 2024-12-20T03:11:16.215Z (23 days ago)
- Language: Java
- Homepage: https://plugins.jetbrains.com/plugin/14397-wordspec
- Size: 71.3 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# IntelliJ WordSpec Plugin
This [IntelliJ Plugin](https://www.jetbrains.org/intellij/sdk/docs/intro/welcome.html) allows running single [WordSpecLike](https://www.scalatest.org/at_a_glance/WordSpec) [ScalaTest](https://www.scalatest.org) test cases from [IntelliJ IDEA](https://www.jetbrains.com/idea/) using [Gradle](https://gradle.org/).
It depends on [Scala Plugin](https://plugins.jetbrains.com/plugin/1347-scala).
To work correctly, the setup in which it is applied has to understand how to run *WordSpecLike* test cases when they are provided as [fully qualified name patterns](https://docs.gradle.org/current/userguide/java_testing.html#full_qualified_name_pattern).
If more than one `test` task is present on the *project*, user will be asked to choose which one to use on the first run of the configuration.
### Example
```scala
package exampleimport org.junit.runner.RunWith
import org.scalatest._
import org.scalatest.junit.JUnitRunner@RunWith(classOf[JUnitRunner])
class ExampleTest extends WordSpecLike with Matchers {
"example" should {
"showcase how to run a single test case" in {
1 should be(1)
}
}
}
```For the above code, the plugin would generate :: buttons in the left-hand side menu named:
- `example should *`
- `example should showcase how to run a single test case`When clicked, run configurations with following parameters would be created (respectively):
- `--tests "example.ExampleTest.example should *"`
- `--tests "example.ExampleTest.example should showcase how to run a single test case"`