https://github.com/alopukhov/sybok-example
An example project for Sybok library
https://github.com/alopukhov/sybok-example
groovy junit5 sybok testing
Last synced: 8 months ago
JSON representation
An example project for Sybok library
- Host: GitHub
- URL: https://github.com/alopukhov/sybok-example
- Owner: alopukhov
- License: apache-2.0
- Created: 2022-05-03T19:05:35.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-05-07T23:09:38.000Z (almost 4 years ago)
- Last Synced: 2023-09-15T09:20:00.151Z (over 2 years ago)
- Topics: groovy, junit5, sybok, testing
- Language: Groovy
- Homepage:
- Size: 70.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Example of [Sybok](https://github.com/alopukhov/sybok) usage
Download dependencies and copy scripts
```bash
./gradlew installDist
```
Navigate to `build/install/sybok-example`
You can play with scripts execution using `run-tests` script
E.g. run all specs
```bash
./run-tests.sh
```
or run single file
```bash
./run-tests.sh -f tests/spock/SpockSpec.groovy
```
Experiment with adding specs
Or just run individual spec with wrong feature. Fix it inplace. And rerun:
```bash
./run-tests.sh -f tests/spock/SpockSpec.groovy
sed -Ei "s/(.*)(2 \* 2 == 5)(.*)/\12 * 2 == 4\3/g" tests/spock/SpockSpec.groovy
./run-tests.sh -f tests/spock/SpockSpec.groovy
```