Skip to content

fix(tests): make the implicit views renderer spec engine-independent - #743

Merged
lmajano merged 1 commit into
developmentfrom
code/festive-keller-363my5
Nov 19, 2026
Merged

lmajano merged 1 commit into
developmentfrom
code/festive-keller-363my5

Conversation

@lmajano

@lmajano lmajano commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

Description

RendererTest "explains that implicit views are disabled when no view is set" (added in #741, COLDBOX-1481) fails on Adobe 2023 and Adobe 2025 with renderView() should have thrown, and has been red on development since that merge. BoxLang and Lucee pass.

Cause (spec only, no framework bug): the spec stored the caught exception and asserted expect( thrown ).notToBeEmpty(). TestBox sizes the target in getTargetLength(), which only counts strings, arrays, structs, queries and sets. On Adobe the caught exception is a coldfusion.runtime.CustomException Java object (isObject true, isStruct false), so its length is 0 and it reads as empty even though view() did throw. On BoxLang and Lucee the caught exception is a struct with keys, so the same assertion passes. I confirmed this on Adobe 2023 with a standalone probe and by reading TestBox's getTargetLength().

Change: the spec now calls view() directly (the deprecated renderView() wrapper is not what is under test) and keeps only the exception type and detail as plain strings, so no engine-specific exception object reaches an assertion. The assertions about the message content are unchanged. No framework code changes.

Verification: the Adobe probe shows e.type is readable on the caught exception. The full spec could not run locally because the test harness needs MySQL, so Adobe 2023 and 2025 CI on this PR is the end-to-end check.

Jira Issues

Follow up to https://ortussolutions.atlassian.net/browse/COLDBOX-1481

Type of change

  • Bug Fix

Checklist

  • My code follows the style guidelines of this project cfformat
  • I have commented my code, particularly in hard-to-understand areas
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

🤖 Generated with Claude Code

https://claude.ai/code/session_019aF6okUSkxZW3STzeV7Q9B

Call view() instead of the deprecated renderView() wrapper and compare plain
type and detail strings instead of the caught exception object.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019aF6okUSkxZW3STzeV7Q9B
@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Test Results

0 tests  ±0   0 ✅ ±0   0s ⏱️ ±0s
0 suites ±0   0 💤 ±0 
0 files   ±0   0 ❌ ±0 

Results for commit 33d49ee. ± Comparison against base commit 7915aef.

♻️ This comment has been updated with latest results.

@lmajano
lmajano merged commit 7680fe9 into development Nov 19, 2026
20 of 28 checks passed
@lmajano
lmajano deleted the code/festive-keller-363my5 branch November 19, 2026 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants