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

Arquillian

32
48
+ 1
0
Capybara

851
190
+ 1
15
Add tool

Capybara vs Arquillian: 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; Arquillian: An Innovative Testing Platform for the JVM. It is an integration and functional testing platform that can be used for Java middleware testing. With the main goal of making integration (and functional) tests as simple to write as unit tests, it brings the tests to the runtime environment, freeing developers from managing the runtime from within the test.

Capybara and Arquillian can be primarily classified as "Testing Frameworks" tools.

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, Arquillian provides the following key features:

  • Real Tests
  • IDE Friendly
  • Test Enrichment

Capybara is an open source tool with 8.88K GitHub stars and 1.3K GitHub forks. Here's a link to Capybara's open source repository on GitHub.

Get Advice from developers at your company using StackShare Enterprise. Sign up for StackShare Enterprise.
Learn More
Pros of Arquillian
Pros of Capybara
    Be the first to leave a pro
    • 12
      Best acceptance test framework for Ruby on Rails apps
    • 2
      Synchronous with Rack::Test
    • 1
      Fast with Rack::Test

    Sign up to add or upvote prosMake informed product decisions

    Cons of Arquillian
    Cons of Capybara
      Be the first to leave a con
      • 1
        Hard to make reproducible tests when using with browser

      Sign up to add or upvote consMake informed product decisions

      What is Arquillian?

      It is an integration and functional testing platform that can be used for Java middleware testing. With the main goal of making integration (and functional) tests as simple to write as unit tests, it brings the tests to the runtime environment, freeing developers from managing the runtime from within the test.

      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.

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

      What companies use Arquillian?
      What companies use Capybara?
      See which teams inside your own company are using Arquillian or Capybara.
      Sign up for StackShare EnterpriseLearn More

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

      What tools integrate with Arquillian?
      What tools integrate with Capybara?

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

      Blog Posts

      What are some alternatives to Arquillian and Capybara?
      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.
      JUnit
      JUnit is a simple framework to write repeatable tests. It is an instance of the xUnit architecture for unit testing frameworks.
      Mockito
      It is a mocking framework that tastes really good. It lets you write beautiful tests with a clean & simple API. It doesn’t give you hangover because the tests are very readable and they produce clean verification errors.
      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.
      TestNG
      It is a testing framework designed to simplify a broad range of testing needs, it covers all categories of tests: unit, functional, end-to-end, integration, etc.Run your tests in arbitrarily big thread pools with various policies available (all methods in their own thread, one thread per test class, etc.
      See all alternatives