Last active
July 9, 2020 13:14
-
-
Save kriegaex/2866f56a0ecde17d65ea03f23018f0d0 to your computer and use it in GitHub Desktop.
How to run Spock 2 tests via JUnit 5 stand-alone console runner (please adjust variables, paths, separators etc. by yourself)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export MAVEN_REPO=c:/Users/alexa/.m2/repository | |
export JUNIT5_STANDALONE=$MAVEN_REPO/org/junit/platform/junit-platform-console-standalone/1.6.2/junit-platform-console-standalone-1.6.2.jar | |
export GROOVY3=$MAVEN_REPO/org/codehaus/groovy/groovy/3.0.4/groovy-3.0.4.jar | |
export SPOCK2_CORE=$MAVEN_REPO/org/spockframework/spock-core/2.0-M3-groovy-3.0/spock-core-2.0-M3-groovy-3.0.jar | |
java -jar $JUNIT5_STANDALONE -cp "$GROOVY3;$SPOCK2_CORE;target/test-classes;target/classes" --disable-banner --details=verbose --select-class de.scrum_master.testing.MyTest |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From a conversation on the Spock channel on Gitter: