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

Capybara

621
190
+ 1
15
Jasmine

2.6K
1.5K
+ 1
186
Add tool

Capybara vs Jasmine: What are the differences?

Developers describe Capybara as "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. On the other hand, Jasmine is detailed 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.

Capybara and Jasmine are primarily classified as "Testing Frameworks" and "Javascript Testing Framework" tools respectively.

"Best acceptance test framework for Ruby on Rails apps" is the primary reason why developers consider Capybara over the competitors, whereas "Can also be used for tdd " was stated as the key factor in picking Jasmine.

Capybara and Jasmine are both open source tools. It seems that Jasmine with 14.4K GitHub stars and 2.12K forks on GitHub has more adoption than Capybara with 8.82K GitHub stars and 1.29K GitHub forks.

According to the StackShare community, Jasmine has a broader approval, being mentioned in 143 company stacks & 75 developers stacks; compared to Capybara, which is listed in 38 company stacks and 20 developer stacks.

Decisions about Capybara and Jasmine

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 Capybara
Pros of Jasmine
  • 12
    Best acceptance test framework for Ruby on Rails apps
  • 2
    Synchronous with Rack::Test
  • 1
    Fast with Rack::Test
  • 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"

Sign up to add or upvote prosMake informed product decisions

Cons of Capybara
Cons of Jasmine
  • 1
    Hard to make reproducible tests when using with browser
  • 2
    Unfriendly error logs

Sign up to add or upvote consMake informed product decisions

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 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.

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

What companies use Capybara?
What companies use Jasmine?
See which teams inside your own company are using Capybara or Jasmine.
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 Jasmine?

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

Blog Posts

What are some alternatives to Capybara and Jasmine?
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