Need advice about which tool to choose?Ask the StackShare community!
Jasmine vs Nightwatchjs: What are the differences?
Jasmine: 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; Nightwatchjs: Automated testing and continous integration framework based on node.js and selenium webdriver. Nightwatch.js is an easy to use Node.js based End-to-End (E2E) testing solution for browser based apps and websites. It uses the powerful Selenium WebDriver API to perform commands and assertions on DOM elements.
Jasmine belongs to "Javascript Testing Framework" category of the tech stack, while Nightwatchjs can be primarily classified under "Browser Testing".
Jasmine and Nightwatchjs are both open source tools. Jasmine with 14.4K GitHub stars and 2.12K forks on GitHub appears to be more popular than Nightwatchjs with 9.38K GitHub stars and 917 GitHub forks.
GrowthHackers, Pivotal Labs, and Coderus are some of the popular companies that use Jasmine, whereas Nightwatchjs is used by WebbyLab, UniSharp, and GoEuro. Jasmine has a broader approval, being mentioned in 143 company stacks & 75 developers stacks; compared to Nightwatchjs, which is listed in 16 company stacks and 4 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 Nightwatchjs
- Open source3
- Testing2
- Automates browsers2
- Better cross browser (use selenium)1
- Cross-Browser Testing1
- Multiple Browser Support1
- Parallel Test Running1
Sign up to add or upvote prosMake informed product decisions
Cons of Jasmine
- Unfriendly error logs2
Cons of Nightwatchjs
- No automatic wait2