After the unit test completes (success or failure) the Dartium browser remains open. Is there a way to close it from within the test?
Asked
Active
Viewed 89 times
0
-
How are you running your tests? Using karma and karma-dart, the browser should open and close automatically. – James deBoer Dec 23 '13 at 20:55
-
content_shell is another option – Günter Zöchbauer Dec 23 '13 at 21:02
-
@James I'm just running from the dart editor at the moment. i.e. 'run in Dartium' with my test html & dart file. Thanks for the suggestion (and @GünterZöchbauer). I'll likely have to use on of them. There doesn't seem to be anything in native dart (e.g. unittest package) that can tell Dartium to exit after the test runs – Anders Dec 25 '13 at 01:26
-
Is this still an issue? – Günter Zöchbauer Jun 03 '15 at 07:52
-
I'm not sure. I haven't run a unit test in a browser for a long time – Anders Jun 03 '15 at 10:16