Dart 单元测试不适用于 content-shell

标签 dart dart-html

我有使用 test: '>=0.12.1 <0.13.0' 编写的 dart 单元测试图书馆。当我尝试使用 Dartium 运行测试时它完美运行,但使用 content-shell 时它会抛出错误。

pub run test test/unit -p content-shell
Failed to start content shell: Bad state: Stream has already been listened to..

我正在使用 ubuntu 机器,content shell 在路径中。

最佳答案

我将 dart 和 content-shell 版本升级到 1.11,现在可以正常工作了。

关于Dart 单元测试不适用于 content-shell,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30874952/

相关文章:

functional-programming - Dart 是否支持函数式编程?

dart - 如何使用canvas 2D上下文在Dart中描边文本?

dart - Angular dart 书签 View

Dart:无需重新加载的动态重定向

dart-pub - 飞镖网 : couldn't run webdev

dart - 在 AngularDart 中的媒体更改时将应用程序布局抽屉持久更改为临时

eclipse - OSx DartLang - 如何将工作区重置为 DartLang 编辑器?

Flutter BLoC 无法更新我的 bool 值列表

dart - 如何让 Geolocation API 在 Dartium 中工作?