Skip to content

Commit

Permalink
Merge pull request #183 from shipkit/fix-spock-junit4
Browse files Browse the repository at this point in the history
Add missing spock-junit4 dependency
  • Loading branch information
koral-- authored Oct 31, 2024
2 parents cf6a832 + ca90468 commit cbf65f1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,17 @@ dependencies {
testImplementation 'junit:junit:4.13.2'

testImplementation "org.spockframework:spock-core:2.3-groovy-3.0"
testImplementation "org.spockframework:spock-junit4:2.3-groovy-3.0"
testImplementation "cglib:cglib-nodep:3.3.0" //mocking concrete classes with spock
testImplementation "org.objenesis:objenesis:3.3" //as above
}

tasks.withType(Test).configureEach { testTask ->
testTask.configure {
useJUnitPlatform()
}
}

apply from: "$rootDir/gradle/release.gradle"
apply from: "$rootDir/gradle/integ-test.gradle"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class AutoVersionPluginTest extends Specification {
def runner = new ProcessRunner(project.projectDir)

//prepare repo
runner.run("git", "init")
runner.run("git", "init", "--initial-branch=main")
runner.run("git", "config", "user.email", "[email protected]")
runner.run("git", "config", "user.name", "Dummy For Testing")

Expand All @@ -29,7 +29,7 @@ class AutoVersionPluginTest extends Specification {
runner.run("git", "commit", "--allow-empty", "-m", "PR-10 - 1")
runner.run("git", "commit", "--allow-empty", "-m", "PR-10 - 2")

runner.run("git", "checkout", "master")
runner.run("git", "checkout", "main")
runner.run("git", "merge", "PR-10", "--no-ff", "-m", "Merge pull request #10 from ...")

when:
Expand Down

0 comments on commit cbf65f1

Please sign in to comment.