Add more Gradle tasks for running integration tests manually
authorBob Harner <bobharner@gmail.com>
Sun, 5 Aug 2018 02:29:50 +0000 (22:29 -0400)
committerBob Harner <bobharner@gmail.com>
Sun, 5 Aug 2018 02:29:50 +0000 (22:29 -0400)
tapestry-beanvalidator/build.gradle
tapestry-core/build.gradle

index b9d0652..24ac5a1 100644 (file)
@@ -15,6 +15,13 @@ task compileCoffeeScript(type: CompileCoffeeScript) {
     outputDir "src/main/generated/compiled-coffeescript"
 }
 
+// Start up the test app, useful when debugging failing integration tests
+task runTestApp303(type:JavaExec) {
+  main = 'org.apache.tapestry5.test.JettyRunner'
+  args "-d", "src/test/webapp", "-p", "8080"
+  classpath += project.sourceSets.test.runtimeClasspath
+}
+
 clean.delete 'src/main/generated'
 
 sourceSets {
index d7453dd..9165da2 100644 (file)
@@ -65,11 +65,37 @@ jar {
     }
 }
 
+// tasks for starting integration test apps, useful when debugging failing integration tests
 task runTestApp1(type:JavaExec) {
   main = 'org.apache.tapestry5.test.JettyRunner'
   args "-d", "src/test/app1", "-p", "8080"
   classpath += project.sourceSets.test.runtimeClasspath
 }
+task runTestApp2(type:JavaExec) {
+  main = 'org.apache.tapestry5.test.JettyRunner'
+  args "-d", "src/test/app2", "-p", "8080"
+  classpath += project.sourceSets.test.runtimeClasspath
+}
+task runTestApp3(type:JavaExec) {
+  main = 'org.apache.tapestry5.test.JettyRunner'
+  args "-d", "src/test/app3", "-p", "8080"
+  classpath += project.sourceSets.test.runtimeClasspath
+}
+task runTestApp4(type:JavaExec) {
+  main = 'org.apache.tapestry5.test.JettyRunner'
+  args "-d", "src/test/app4", "-p", "8080"
+  classpath += project.sourceSets.test.runtimeClasspath
+}
+task runTestApp5(type:JavaExec) {
+  main = 'org.apache.tapestry5.test.JettyRunner'
+  args "-d", "src/test/app5", "-p", "8080"
+  classpath += project.sourceSets.test.runtimeClasspath
+}
+task runTestAppfolder(type:JavaExec) {
+  main = 'org.apache.tapestry5.test.JettyRunner'
+  args "-d", "src/test/appfolder", "-p", "8080"
+  classpath += project.sourceSets.test.runtimeClasspath
+}
 
 task testWithPrototype(type:Test) {
   systemProperties."tapestry.javascript-infrastructure-provider" = "prototype"