QUnit 与茉莉花? [英] QUnit vs Jasmine?

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

问题描述

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

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.

p>

Jasmine 的优势,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 与茉莉花?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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