This is an automated email from the ASF dual-hosted git repository. thiagohp pushed a commit to branch feature/coffeescript-to-typescript in repository https://gitbox.apache.org/repos/asf/tapestry-5.git
commit 015aff60d2ccab45b691882cac1051c559cf8f34 Author: Thiago H. de Paula Figueiredo <thi...@arsmachina.com.br> AuthorDate: Sun Jun 8 18:03:58 2025 -0300 TAP5-2804: adding test suites for Require.js enabled and not --- build.gradle | 6 +++++- tapestry-core/build.gradle | 18 ++++++++++++++++-- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index f318ae411..bd629c541 100755 --- a/build.gradle +++ b/build.gradle @@ -539,7 +539,11 @@ task combinedJacocoReport(type:JacocoReport){ task continuousIntegration { // tapestry-javadoc doesn't work with Java 8 anymore. That's why it's only added if != 8. - def dependants = [subprojects.build, 'tapestry-core:testWithPrototype', combinedJacocoReport] + def dependants = [subprojects.build, // jQuery and Require.js enabled + 'tapestry-core:testWithJqueryAndRequireJsDisabled', + 'tapestry-core:testWithPrototypeAndRequireJsEnabled', + 'tapestry-core:testWithPrototypeAndRequireJsDisabled', + combinedJacocoReport] if (JavaVersion.current() != JavaVersion.VERSION_1_8) { dependants << aggregateJavadoc } diff --git a/tapestry-core/build.gradle b/tapestry-core/build.gradle index c23f621e6..1e66536cd 100644 --- a/tapestry-core/build.gradle +++ b/tapestry-core/build.gradle @@ -143,6 +143,20 @@ task runTestAppfolder(type:JavaExec) { classpath += project.sourceSets.test.runtimeClasspath } -task testWithPrototype(type:Test) { - systemProperties."tapestry.javascript-infrastructure-provider" = "prototype" +// Default is jQuery and Require.js enabled, so here are the tests for the +// other combinations + +task testWithJqueryAndRequireJsDisabled(type:Test) { + systemProperties."tapestry.javascript-infrastructure-provider" = "jquery" + systemProperties."tapestry.require-js-enabled" = "false" } + +task testWithPrototypeAndRequireJsEnabled(type:Test) { + systemProperties."tapestry.javascript-infrastructure-provider" = "prototype" + systemProperties."tapestry.require-js-enabled" = "true" +} + +task testWithPrototypeAndRequireJsDisabled(type:Test) { + systemProperties."tapestry.javascript-infrastructure-provider" = "prototype" + systemProperties."tapestry.require-js-enabled" = "false" +} \ No newline at end of file