BoxLang: Our new JVM Dynamic Language made by Ortus! Check it out: https://www.boxlang.io

Custom reporter passed as CFC instance doesn't work

Description

Passing an already-instantiated reporter CFC to testbox throws an error when you try to run the tests. That's because the logic to test and see if the reporter is a struct also fires for CFC instances. See this complete example including error message on Gist:

https://gist.github.com/jamiejackson/98236d89e47f8e2bcced9d0234537a3c

Making the two if statements in TestBox's produceReport() function for isObject() and isStruct() an if/else should fix the issue since if the reporter is an object, we don't want to check it for a struct as well.

Gliffy Diagrams

Activity

Show:
Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Sentry

Created April 22, 2016 at 2:29 PM
Updated November 17, 2016 at 5:54 PM
Resolved November 17, 2016 at 5:54 PM

Flag notifications