Skip to content

Smoke tests fail for 'groovy' & 'groovy-mte' templating after doing git clone, then Gradle clean & build #787

@Basil-Dot-Work

Description

@Basil-Dot-Work

I am new to JBake, so perhaps I did something wrong. But I don't think so. This seems simple and straightforward: clone project, build, and fail on a Mac with Apple Silicon chip.

In IntelliJ IDEA 2025.1 RC (Ultimate Edition), on macOS Sequoia 15.4 with chip M1 Pro, with Java 17.0.4 Corretto, I did this:

  1. IntelliJ performed a git clone of https://github.com/jbake-org/jbake.git
  2. In the Gradle pane of IntelliJ, I ran bake-base > Tasks > clean
  3. In the Gradle pane of IntelliJ, I ran bake-base > Tasks > build

The smoke tests for templating in Thymeleaf, FreeMarker, and Jade all passed. But these two tests failed:

  • shouldBakeWithProject[ groovy ]
  • shouldBakeWithProject[ groovy-mte ]

In both cases, the error message was:

org.opentest4j.AssertionFailedError:
expected: 0
but was: 1

Workaround: In BuiltInProjectsTest.java file, comment out lines 40 & 41 to eliminate the "groovy" & "groovy-mte" array elements. This effectively omits these two templating systems from the smoke tests. The project then builds, tests pass.

//            {"groovy", "gsp"},
//            {"groovy-mte", "tpl"}

This should be easy for anyone to replicate. My first time posting an issue, so let me know if I can improve.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions