Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions native-cli-integration-tests/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,16 @@ downloadTestSuites.dependsOn(cleanTestSuites)
test.dependsOn(downloadTestSuites)
test.dependsOn(":native-cli:nativeCompile")

// Skip TCKCliTest when -PskipTCKTests=true (matches -PskipNodeTests pattern).
// CI build-foundation passes this flag on non-master branches so TCK only runs via the explicit
// "Run CLI TCK Conformance" step (master-only), matching Node TCK behavior. Other IT tests run always.
// TCK conformance is master-only. On non-master CI, build-foundation passes
// -PskipTCKTests=true; we exclude the TckConformance-tagged scenarios so they
// don't run, while the module's other IT specs still do. This uses ScalaTest
// tag exclusion (maiflai's `tags { exclude }` -> scalatest `-l <tag>`) rather
// than Gradle's Test.exclude class-pattern filter, which is a no-op under the
// maiflai scalatest runner. Mirrors the master-only Node TCK lane.
test {
if (project.hasProperty('skipTCKTests') && project.property('skipTCKTests') == 'true') {
exclude '**/TCKCliTest.class'
tags {
exclude 'org.mule.weave.clinative.TckConformance'
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import org.apache.commons.io.FilenameUtils
import org.mule.weave.v2.helper.FolderBasedTest
import org.mule.weave.v2.utils.DataWeaveVersion
import org.mule.weave.v2.version.ComponentVersion
import org.scalatest.Tag
import org.scalatest.funspec.AnyFunSpec
import org.scalatest.matchers.should.Matchers

Expand All @@ -18,6 +19,10 @@ import java.util.regex.Pattern
import java.util.zip.ZipFile
import scala.collection.JavaConverters._

// TCK conformance scenarios are tagged so CI can exclude them on non-master
// (PR) builds via -PskipTCKTests=true, matching the master-only Node TCK lane.
object TckConformance extends Tag("org.mule.weave.clinative.TckConformance")

class TCKCliTest extends AnyFunSpec with Matchers
with FolderBasedTest
with ResourceResolver
Expand Down Expand Up @@ -142,7 +147,7 @@ class TCKCliTest extends AnyFunSpec with Matchers
val scenarios = unsortedScenarios.sortBy(_.name)
scenarios.foreach {
scenario =>
it(scenario.name) {
it(scenario.name, TckConformance) {
var args = Array("run")

// Add inputs
Expand Down
Loading