QUnit vs Jasmine? [closed]
Asked Answered
F

1

113

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.

Fula answered 12/8, 2011 at 23:34 Comment(1)
What did you go with in the end?Chansoo
M
136

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.

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.

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.

Morril answered 14/8, 2011 at 22:13 Comment(1)
Nice answer. I also recommend javascriptjabber.com/050-jsj-qunit-with-jorn-zaeffererCork

© 2022 - 2024 — McMap. All rights reserved.