Need advice about which tool to choose?Ask the StackShare community!

Jasmine

1.3K
1.4K
+ 1
186
Nightwatchjs

112
279
+ 1
11
Add tool

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.

Decisions about Jasmine and Nightwatchjs

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.

See more
Get Advice from developers at your company using StackShare Enterprise. Sign up for StackShare Enterprise.
Learn More
Pros of Jasmine
Pros of Nightwatchjs
  • 64
    Can also be used for tdd
  • 49
    Open source
  • 18
    Originally from RSpec
  • 15
    Great community
  • 14
    No dependencies, not even DOM
  • 10
    Easy to setup
  • 8
    Simple
  • 3
    Created by Pivotal-Labs
  • 2
    Works with KarmaJs
  • 1
    Jasmine is faster than selenium in angular application
  • 1
    SpyOn to fake calls
  • 1
    Async and promises are easy calls with "done"
  • 3
    Open source
  • 2
    Testing
  • 2
    Automates browsers
  • 1
    Better cross browser (use selenium)
  • 1
    Cross-Browser Testing
  • 1
    Multiple Browser Support
  • 1
    Parallel Test Running

Sign up to add or upvote prosMake informed product decisions

Cons of Jasmine
Cons of Nightwatchjs
  • 2
    Unfriendly error logs
  • 2
    No automatic wait

Sign up to add or upvote consMake informed product decisions

- No public GitHub repository available -

What is Jasmine?

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.

What is Nightwatchjs?

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.

Need advice about which tool to choose?Ask the StackShare community!

Jobs that mention Jasmine and Nightwatchjs as a desired skillset
What companies use Jasmine?
What companies use Nightwatchjs?
See which teams inside your own company are using Jasmine or Nightwatchjs.
Sign up for StackShare EnterpriseLearn More

Sign up to get full access to all the companiesMake informed product decisions

What tools integrate with Jasmine?
What tools integrate with Nightwatchjs?

Sign up to get full access to all the tool integrationsMake informed product decisions

What are some alternatives to Jasmine and Nightwatchjs?
Mocha
Mocha is a feature-rich JavaScript test framework running on node.js and the browser, making asynchronous testing simple and fun. Mocha tests run serially, allowing for flexible and accurate reporting, while mapping uncaught exceptions to the correct test cases.
Jest
Jest provides you with multiple layers on top of Jasmine.
Karma
Karma is not a testing framework, nor an assertion library. Karma just launches a HTTP server, and generates the test runner HTML file you probably already know from your favourite testing framework. So for testing purposes you can use pretty much anything you like.
Cypress
Cypress is a front end automated testing application created for the modern web. Cypress is built on a new architecture and runs in the same run-loop as the application being tested. As a result Cypress provides better, faster, and more reliable testing for anything that runs in a browser. Cypress works on any front-end framework or website.
Chai
It is a BDD / TDD assertion library for node and the browser that can be delightfully paired with any javascript testing framework. It has several interfaces that allow the developer to choose the most comfortable. The chain-capable BDD styles provide an expressive language & readable style, while the TDD assert style provides a more classical feel.
See all alternatives