twbs / ratchet

Build mobile apps with simple HTML, CSS, and JavaScript components.
http://goratchet.com
MIT License
14.63k stars 1.45k forks source link

Add unit tests for Ratchet's JS libs #723

Open cvrebert opened 9 years ago

kkirsche commented 9 years ago

Are you looking to stick with QUnit as you guys use in Bootstrap or are you interested in something like Jasmine or Mocha?

Johann-S commented 9 years ago

What's the interest of using Jasmine or Mocha instead of QUnit ?

cvrebert commented 9 years ago

I don't think any pull request adding unit tests would be rejected on account of which unit testing library was chosen by its author.

kkirsche commented 9 years ago

My thoughts on pluses and minuses to each @johann-s (feel free to disagree though as a lot of opinion based)

QUnit:

Pros:

Cons:

Jasmine

Pros:

Cons:

Mocha

Pros:

Cons:

Johann-S commented 9 years ago

Apparently @cvrebert is open to every unit testing library. Thanks @kkirsche for your thougthts it was very interesting.

I only know QUnit and Jasmine and that's right Jasmine is very simple to setup and learn. In all cases it would be very usefull to have unit test on Ratchet.

Just to know, Is it possible on SauceLab to test for specific devices @cvrebert ?

cvrebert commented 9 years ago

See https://saucelabs.com/platforms/#android