我有使用 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/