测试angular2 dart组件 [英] Testing angular2 dart component

查看:166
本文介绍了测试angular2 dart组件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我写了一个组件,想要测试它。

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆