用茉莉花测试ember.js应用程序 [英] testing ember.js apps with jasmine
问题描述
如何测试视图?
似乎没有任何广泛的示例/信息。
我不能提出一个如何实现这一点的例子,但是我发现了一个广泛使用Jasmine的项目测试:您应该查看GitHub上的 ember-resource 项目。它使用Jasmine进行测试,它们位于 spec / javascripts 。
该项目还有一个 Rakefile
和相应的任务,让您以方便的方式执行规范。
有一篇关于使用Jasmine测试Ember.js的博文: http://www.thesoftwaresimpleton.com/blog/2012/04/03/testing-ember -and-the-runloop /
Does anyone know of any resources, examples or tutorials about testing ember.js apps ?
How do you test views ?
There does not seem to be any extensive examples / information on this.
I can't propose an example how you can achieve that, but I have found a project which extensively uses Jasmine for their test: you should take a look at the ember-resource project on GitHub. It uses Jasmine for their tests, which are located in spec/javascripts.
The project also has a Rakefile
and corresponding tasks which let you execute the specs in a convenient way.
There is a blog post about testing Ember.js with Jasmine: http://www.thesoftwaresimpleton.com/blog/2012/04/03/testing-ember-and-the-runloop/
这篇关于用茉莉花测试ember.js应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!