Skip to content

Commit

Permalink
feat: #185 backend service test setup
Browse files Browse the repository at this point in the history
  • Loading branch information
marcinbator committed Dec 6, 2024
1 parent 9c474e5 commit f05c908
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 387 deletions.
4 changes: 4 additions & 0 deletions kodemy-backend/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ plugins {
id 'java'
id 'org.springframework.boot' version '3.2.7'
id 'io.spring.dependency-management' version '1.1.5'
id 'groovy'
}

group = 'pl.sknikod'
Expand Down Expand Up @@ -78,6 +79,9 @@ dependencies {
testImplementation 'org.springframework.cloud:spring-cloud-contract-wiremock'
testImplementation 'org.springframework.cloud:spring-cloud-stream'
testImplementation 'org.springframework.cloud:spring-cloud-stream-test-binder'
testImplementation 'org.spockframework:spock-spring:2.4-M4-groovy-4.0'
testImplementation "org.apache.groovy:groovy"
testImplementation "org.apache.groovy:groovy-json"
testImplementation 'org.testcontainers:junit-jupiter:1.20.0'
constraints {
testImplementation('org.apache.commons:commons-compress:1.26.2') {
Expand Down
14 changes: 14 additions & 0 deletions kodemy-backend/src/test/groovy/TSpec.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import spock.lang.Specification

class TSpec extends Specification {
def "shouldTrue"() {
given:
def email = ""
when:
email = ""
then:
verifyAll {
email == ""
}
}
}

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit f05c908

Please sign in to comment.