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

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

问题描述

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

Does anyone know of any resources, examples or tutorials about testing ember.js apps ?

你如何测试视图?

似乎没有任何关于此的广泛示例/信息.

There does not seem to be any extensive examples / information on this.

推荐答案

我不能举一个例子来实现这个目标,但是我发现了一个广泛使用 Jasmine 进行测试的项目:你应该看看GitHub 上的 ember-resource 项目.它使用 Jasmine 进行测试,这些测试位于 spec/javascripts.

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.

该项目还有一个 Rakefile 和相应的任务,可让您以方便的方式执行规范.

The project also has a Rakefile and corresponding tasks which let you execute the specs in a convenient way.

有一篇关于用 Jasmine 测试 Ember.js 的博文:http://www.thesoftwaresimpleton.com/blog/2012/04/03/testing-ember-and-the-runloop/

There is a blog post about testing Ember.js with Jasmine: http://www.thesoftwaresimpleton.com/blog/2012/04/03/testing-ember-and-the-runloop/

这篇关于用 jasmine 测试 ember.js 应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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