Add more Gradle tasks for running integration tests manually Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/63f309d1 Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/63f309d1 Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/63f309d1
Branch: refs/heads/master Commit: 63f309d1816cd3146ad4615245bd8e49169e79ab Parents: 9c9de1a Author: Bob Harner <[email protected]> Authored: Sat Aug 4 22:29:50 2018 -0400 Committer: Bob Harner <[email protected]> Committed: Sat Aug 4 22:29:50 2018 -0400 ---------------------------------------------------------------------- tapestry-beanvalidator/build.gradle | 7 +++++++ tapestry-core/build.gradle | 26 ++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/63f309d1/tapestry-beanvalidator/build.gradle ---------------------------------------------------------------------- diff --git a/tapestry-beanvalidator/build.gradle b/tapestry-beanvalidator/build.gradle index b9d0652..24ac5a1 100644 --- a/tapestry-beanvalidator/build.gradle +++ b/tapestry-beanvalidator/build.gradle @@ -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 { http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/63f309d1/tapestry-core/build.gradle ---------------------------------------------------------------------- diff --git a/tapestry-core/build.gradle b/tapestry-core/build.gradle index d7453dd..9165da2 100644 --- a/tapestry-core/build.gradle +++ b/tapestry-core/build.gradle @@ -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"
