QUnit vs Jasmine? [英] QUnit vs Jasmine?

查看:112
本文介绍了QUnit vs Jasmine?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这两个测试框架之间的主要区别是什么?

What are the main differences between these two testing frameworks?

我从一开始就是测试驱动开发的新手。

I am a totally new to Test Driven Development and starting from the very beginning.

推荐答案

QUnit非常容易上手,因为你只需要包含两个文件和一点标记,然后就可以开始编写测试了。

QUnit is very easy to get started with, as you only need to include two files and a little bit of markup, then you can start writing tests.

茉莉花的力量,afaik是它的BDD风格的语法,如果这是你喜欢的东西(可能不是你的卖点)和紧密集成到Ruby / Rails工具。

Jasmine strength, afaik is its BDD-style syntax, if that is something that you prefer (probably not a selling point for you) and tight integration into Ruby/Rails tools.

最终都完成了工作。我建议从QUnit开始。一旦你感觉舒服,试试Jasmine并检查BDD风格是否更合适。如果确实如此,您仍然希望继续使用QUnit,则可以将 Pavlov 添加到混合中,这将提供BDD QUnit的样式方法。

In the end both get the job done. I recommend to start with QUnit. Once you're feeling comfortable, try Jasmine and check if the BDD style fits better. If it does and you still want to keep using QUnit, you can add Pavlov to the mix, which provides BDD-style methods for QUnit.

这篇关于QUnit vs Jasmine?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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