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

Capybara

466
185
+ 1
15
Nightwatchjs

133
283
+ 1
11
Add tool

Capybara vs Nightwatchjs: What are the differences?

Capybara: Acceptance test framework for web applications. Capybara helps you test web applications by simulating how a real user would interact with your app. It is agnostic about the driver running your tests and comes with Rack::Test and Selenium support built in. WebKit is supported through an external gem; 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.

Capybara belongs to "Testing Frameworks" category of the tech stack, while Nightwatchjs can be primarily classified under "Browser Testing".

Some of the features offered by Capybara are:

  • No setup necessary for Rails and Rack application. Works out of the box.
  • Intuitive API which mimics the language an actual user would use.
  • Switch the backend your tests run against from fast headless mode to an actual browser with no changes to your tests.

On the other hand, Nightwatchjs provides the following key features:

  • e2e
  • test
  • javascript

Capybara and Nightwatchjs are both open source tools. Nightwatchjs with 9.38K GitHub stars and 917 forks on GitHub appears to be more popular than Capybara with 8.82K GitHub stars and 1.29K GitHub forks.

GrowthHackers, sQuidd.io, and Indiegogo are some of the popular companies that use Capybara, whereas Nightwatchjs is used by WebbyLab, UniSharp, and GoEuro. Capybara has a broader approval, being mentioned in 38 company stacks & 20 developers stacks; compared to Nightwatchjs, which is listed in 16 company stacks and 4 developer stacks.

Get Advice from developers at your company using StackShare Enterprise. Sign up for StackShare Enterprise.
Learn More
Pros of Capybara
Pros of Nightwatchjs
  • 12
    Best acceptance test framework for Ruby on Rails apps
  • 2
    Synchronous with Rack::Test
  • 1
    Fast with Rack::Test
  • 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 Capybara
Cons of Nightwatchjs
  • 1
    Hard to make reproducible tests when using with browser
  • 2
    No automatic wait

Sign up to add or upvote consMake informed product decisions

- No public GitHub repository available -

What is Capybara?

Capybara helps you test web applications by simulating how a real user would interact with your app. It is agnostic about the driver running your tests and comes with Rack::Test and Selenium support built in. WebKit is supported through an external gem.

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 Capybara and Nightwatchjs as a desired skillset
CBRE
United States of America Texas Richardson
CBRE
Poland Mazowieckie Warsaw
CBRE
Poland Mazowieckie Warsaw
What companies use Capybara?
What companies use Nightwatchjs?
See which teams inside your own company are using Capybara 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 Capybara?
What tools integrate with Nightwatchjs?

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

Blog Posts

What are some alternatives to Capybara and Nightwatchjs?
Wombat
Automate your store in no time: Wombat is an ecommerce integration platform that quickly connects your storefront with all your favorite 3rd party services. Comprehensive enough for large ecommerce stores and easy enough for small merchants
Cucumber
Cucumber is a tool that supports Behaviour-Driven Development (BDD) - a software development process that aims to enhance software quality and reduce maintenance costs.
Anaconda
A free and open-source distribution of the Python and R programming languages for scientific computing, that aims to simplify package management and deployment. Package versions are managed by the package management system conda.
Selenium
Selenium automates browsers. That's it! What you do with that power is entirely up to you. Primarily, it is for automating web applications for testing purposes, but is certainly not limited to just that. Boring web-based administration tasks can (and should!) also be automated as well.
Quokka
You send great emails but sometimes it gets lost in a user’s inbox. Quokka shows a retargeting message to those who ignored your message so that they will never miss an important update from you.
See all alternatives