I have a custom error table that I pass to error(foo). When I do this in a busted test, and then pass --output=json, it will just print nothing, due to an error that occurs in json.encode where it is unable to serialize function objects. I'm guessing that busted should run tostring(error_obj) somewhere to address this problem
I have a custom error table that I pass to
error(foo)
. When I do this in a busted test, and then pass--output=json
, it will just print nothing, due to an error that occurs in json.encode where it is unable to serialize function objects. I'm guessing that busted should runtostring(error_obj)
somewhere to address this problem