https://github.com/pshevche/spokk
Reimagine the Spock testing framework for Kotlin
https://github.com/pshevche/spokk
kotlin spock-framework testing
Last synced: 11 months ago
JSON representation
Reimagine the Spock testing framework for Kotlin
- Host: GitHub
- URL: https://github.com/pshevche/spokk
- Owner: pshevche
- License: apache-2.0
- Created: 2025-05-09T11:38:10.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-07-20T14:02:08.000Z (11 months ago)
- Last Synced: 2025-07-20T16:05:32.546Z (11 months ago)
- Topics: kotlin, spock-framework, testing
- Language: Kotlin
- Homepage:
- Size: 148 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.adoc
- License: LICENSE
Awesome Lists containing this project
README
= Spokk Framework
This repository reimagines the https://github.com/spockframework/spock[Spock] testing framework for Kotlin.
The project is work-in-progress. See the approximate roadmap https://github.com/pshevche/spokk/milestones[here].
== Concept
The framework relies on a Kotlin compiler plugin to support an expressive syntax in your test code.
Example:
[source,kotlin]
----
fun `can add numbers`() {
given("two numbers")
val a = 1
val b = 2
expect("correct sum")
assert(a + b == 3)
}
----
== Modules
* `spokk-compiler-plugin`: contains the implementation of the IR transformer.
* `spokk-core`: testing engine and specification syntax;
* `spokk-gradle-plugin`: Gradle plugin that simplifies the application of the `spokk-compiler-plugin`.
* `spokk-specs`: specifications, implemented using Spokk.