用茉莉花测试ember.js应用程序 [英] testing ember.js apps with jasmine

查看:106
本文介绍了用茉莉花测试ember.js应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人知道有关测试ember.js应用程序的任何资源,示例或教程?



如何测试视图?



似乎没有任何广泛的示例/信息。

解决方案

我不能提出一个如何实现这一点的例子,但是我发现了一个广泛使用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屋!

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