JUnit vs. Capybara vs. Poltergeist

Get help choosing one of these

Hacker News, Reddit, Stack Overflow Stats

  • -
  • 789
  • 19.8K
  • -
  • -
  • 5.21K
  • -
  • 62
  • 477

GitHub Stats


What is JUnit?

JUnit is a simple framework to write repeatable tests. It is an instance of the xUnit architecture for unit testing frameworks.

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 Poltergeist?

Poltergeist is a driver for Capybara. It allows you to run your Capybara tests on a headless WebKit browser, provided by PhantomJS.

Want advice about which of these to choose?Ask the StackShare community!

Ask a Question


Why do developers choose JUnit?
Why do you like JUnit?

Why do developers choose Capybara?
Why do you like Capybara?

Why do developers choose Poltergeist?
Why do you like Poltergeist?


What are the cons of using JUnit?
No Cons submitted yet for JUnit
Downsides of JUnit?

What are the cons of using Capybara?
Downsides of Capybara?

What are the cons of using Poltergeist?
No Cons submitted yet for Poltergeist
Downsides of Poltergeist?


What companies use JUnit?
77 companies on StackShare use JUnit
What companies use Capybara?
45 companies on StackShare use Capybara
What companies use Poltergeist?
9 companies on StackShare use Poltergeist


What tools integrate with JUnit?
1 tools on StackShare integrate with JUnit
What tools integrate with Capybara?
3 tools on StackShare integrate with Capybara
What tools integrate with Poltergeist?
2 tools on StackShare integrate with Poltergeist

What is an alternative to JUnit, Capybara, and Poltergeist?

  • Cucumber - Simple, human collaboration.

See all alternatives to JUnit

Latest News

Spock vs. JUnit - Which One Should You Choose?
Spring Boot REST API Unit Testing With JUnit
Principles of Effective Testing with Capybara

Interest Over Time

Get help choosing one of these