Need advice about which tool to choose?Ask the StackShare community!
Jasmine vs SinonJS: What are the differences?
Developers describe Jasmine as "DOM-less simple JavaScript testing framework". Jasmine is a Behavior Driven Development testing framework for JavaScript. It does not rely on browsers, DOM, or any JavaScript framework. Thus it's suited for websites, Node.js projects, or anywhere that JavaScript can run. On the other hand, SinonJS is detailed as "Standalone test spies, stubs and mocks for JavaScript". It is a really helpful library when you want to unit test your code. It supports spies, stubs, and mocks. The library has cross browser support and also can run on the server using Node.js.
Jasmine and SinonJS belong to "Javascript Testing Framework" category of the tech stack.
Jasmine and SinonJS are both open source tools. Jasmine with 14.4K GitHub stars and 2.12K forks on GitHub appears to be more popular than SinonJS with 7.25K GitHub stars and 714 GitHub forks.
According to the StackShare community, Jasmine has a broader approval, being mentioned in 143 company stacks & 75 developers stacks; compared to SinonJS, which is listed in 12 company stacks and 6 developer stacks.
We use Mocha for our FDA verification testing. It's integrated into Meteor, our upstream web application framework. We like how battle tested it is, its' syntax, its' options of reporters, and countless other features. Most everybody can agree on mocha, and that gets us half-way through our FDA verification and validation (V&V) testing strategy.
Pros of Jasmine
- Can also be used for tdd64
- Open source49
- Originally from RSpec18
- Great community15
- No dependencies, not even DOM14
- Easy to setup10
- Simple8
- Created by Pivotal-Labs3
- Works with KarmaJs2
- Jasmine is faster than selenium in angular application1
- SpyOn to fake calls1
- Async and promises are easy calls with "done"1
Pros of SinonJS
- Open source1
Sign up to add or upvote prosMake informed product decisions
Cons of Jasmine
- Unfriendly error logs2
Cons of SinonJS
- More concepts than Jest1
- Less questions and answers on StackOverflow than Jest1