Skip to content

Commit

Permalink
Merge pull request #82 from grails/matrei/add-download-test
Browse files Browse the repository at this point in the history
- Add a test for working download support
- Add the functional tests to the CI pipeline
  • Loading branch information
matrei authored Nov 28, 2024
2 parents 8824159 + ed4e12e commit ebcad31
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ jobs:
- name: "🔨 Build project"
id: build
run: ./gradlew build
- name: "🏃‍♀️Run functional tests"
run: |
cd spock-container-test-app
./gradlew check
publish:
if: github.event_name == 'push'
runs-on: ubuntu-latest
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package org.demo.spock

import grails.plugin.geb.ContainerGebSpec
import grails.testing.mixin.integration.Integration

@Integration
class DownloadSupportSpec extends ContainerGebSpec {

void 'should be able to use download methods'() {
when:
go '/'

then:
downloadText().contains('Welcome to Grails')
}
}

0 comments on commit ebcad31

Please sign in to comment.