测试angular2 dart组件 [英] Testing angular2 dart component
问题描述
我写了一个组件,想要测试它。
I wrote a component and want to test it.
如何从组件编写测试?
How can I write a test from component? Is there any test framwork for angular2dart?
推荐答案
您可以使用 test package with the experimental testing implementation https://github.com/dart-lang/angular2/blob/master/lib/testing_experimental.dart
我没有看到的例子和我的避风港
You can use the test package with the experimental testing implementation https://github.com/dart-lang/angular2/blob/master/lib/testing_experimental.dart I haven't seen examples and I haven tried it myself yet.
另请参阅 https://github.com/matanlurey/angular2_api_examples/tree/master/testing/test
我发现了几个使用它的测试 https://github.com/dart -lang / angular2 / search?utf8 =%E2%9C%93& q = testbed 和 https://github.com/dart-lang/angular2/tree/master/lib/src/modules/testing/test
I found a few tests using it in https://github.com/dart-lang/angular2/search?utf8=%E2%9C%93&q=testbed and https://github.com/dart-lang/angular2/tree/master/lib/src/modules/testing/test
这篇关于测试angular2 dart组件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!