Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
No unittest 0.4.1 output from DumpRenderTree #9131
This issue was originally filed by chris...@gmail.com
What steps will reproduce the problem?
Where index.html contains 'dart:html' based unittests.
I expect to see output that ends with unittest messages:
CONSOLE MESSAGE: PASS: unsupported remove
Instead, I see no console output. If I run the same test in the browser, I see those messages.
I am running this locally under Linux Mint with:
Dart VM version: 0.4.1.0_r19425 (Mon Mar 4 22:53:32 2013)
I see the same behavior on drone.io: https://drone.io/eee-c/HipsterMVC/6
Additional info: If I downgrade from unittest 0.4.1 to 0.4.0, it works again: https://drone.io/eee-c/HipsterMVC/7
I think the old version worked for you because there are some changes in the async behavior; we used to use message passing between isolates to separate the execution of test() from the execution of the tests themselves. Now we use futures.
If you want to see the output from DRT, you should add this to your HTML file, before the Dart script:
This will stop DRT from exiting until it gets a done message posted from unittest.
This comment was originally written by aniquilatorbloody...@gmail.com
Hello. I'm having a similar problem. Before I could not see the tests results, but after I used your suggestion including the script in the tests html I can now see the tests, but then the process never stops.
I always get a "FAIL: Timed out waiting for notifyDone to be called".
It seems that the on done message is never sent. What am I doing wrong?
The build status can be checked here:
Thanks in advance.
This comment was originally written by chris.eee...@gmail.com
Is there a future in unittest that will complete when the tests are all done? I am able to get this to work, but I have to use Timer from dart:async to implement a poor-man's polling:
It'd be cleaner to be able to just add something like the following to main():