Returning values directly from a handler is not available in `getRenderData`

Description

The following is valid ColdBox handler code:

This outputs in the browser correctly.

If you run this using a test, though, the data is not available from `event.getRenderData()`:

Activity

Show:
Eric Peterson
October 16, 2019, 4:40 PM

I don’t think it’s a good idea to have to check two different places for my data. If it’s the same to the user I should be able to switch between them without changing my test code.

Luis Majano
October 16, 2019, 1:22 PM

This is already documented in the integration testing docs

Luis Majano
October 16, 2019, 1:20 PM

It’s not because the base test case stores the results in the rc.

Assignee

Luis Majano

Reporter

Eric Peterson

Labels

None

Priority

Major