1. David Carr
  2. jayne-site

Commits

David Carr  committed 6656a3c

tests: add version compatibility test

  • Participants
  • Parent commits 8c207dc
  • Branches default

Comments (0)

Files changed (1)

File src/integrationTest/groovy/us/carrclan/david/gradle/jaynesite/VersionCompatibilitySpec.groovy

View file
  • Ignore whitespace
+package us.carrclan.david.gradle.jaynesite
+
+import org.gradle.tooling.GradleConnector
+import spock.lang.Specification
+
+class VersionCompatibilitySpec extends Specification {
+    def "tests pass with gradle version"() {
+        expect:
+        def connector = GradleConnector.newConnector().useGradleVersion(version).forProjectDirectory(new File('.'))
+        def connection = connector.connect()
+        try {
+            connection.newBuild().forTasks('test').run()
+        } finally {
+            connection.close()
+        }
+
+        where:
+        version    | _
+        '1.3'      | _
+        '1.4'      | _
+        '1.5-rc-2' | _
+    }
+}