Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected failure when parsing test results from stable Dart SDK #113

Closed
aaronlademann-wf opened this issue May 12, 2021 · 1 comment · Fixed by #114
Closed

Unexpected failure when parsing test results from stable Dart SDK #113

aaronlademann-wf opened this issue May 12, 2021 · 1 comment · Fixed by #114

Comments

@aaronlademann-wf
Copy link

Hi there!

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

Screen Shot 2021-05-12 at 2 20 56 PM


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.

@dorny
Copy link
Owner

dorny commented May 13, 2021

Hi! Thanks for reporting the issue. I will fix it asap 👍

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 a pull request may close this issue.

2 participants