You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed today that the following line is possible in test-results.json within a Dart unit test results output:
{"testID":1,"messageType":"print","message":"Consider enabling the flag chain-stack-traces to receive more detailed exceptions.\nFor example, 'pub run test --chain-stack-traces'.","type":"print","time":65561}
The presence of this line - specifically - a line with "messageType":"print" causes this action to throw:
Error: Cannot read property 'print' of undefined
In this case, I was able to overcome the issue by enabling the chain-stack-traces flag in my test command - but I would imagine that this same error will occur if a user places a print() statement within a test.
The text was updated successfully, but these errors were encountered:
Hi there!
I noticed today that the following line is possible in
test-results.json
within a Dart unit test results output:The presence of this line - specifically - a line with
"messageType":"print"
causes this action to throw:In this case, I was able to overcome the issue by enabling the
chain-stack-traces
flag in my test command - but I would imagine that this same error will occur if a user places aprint()
statement within a test.The text was updated successfully, but these errors were encountered: