Software Alternatives & Reviews

Capybara VS Codeception

Compare Capybara VS Codeception and see what are their differences

Capybara logo Capybara

Capybara helps you test web applications by simulating how a real user would interact with your app.

Codeception logo Codeception

Codeception is a new full-stack testing PHP framework.
  • Capybara Landing page
    Landing page //
    2022-11-05
  • Codeception Landing page
    Landing page //
    2022-08-03

Capybara videos

Kalibrgun CAPYBARA Released - FIRST REVIEW 2019

More videos:

  • Review - Schrade Old Timer 30OT Capybara Fixed Blade Knife Review
  • Review - Capybara Video Review

Codeception videos

Our First Acceptance Test [6/24] Codeception & Symfony2

More videos:

  • Tutorial - How to Run Codeception Tests [5/24] Codeception & Symfony2
  • Review - Bootstrapping Codeception [2/24] Codeception & Symfony2

Category Popularity

0-100% (relative to Capybara and Codeception)
Automated Testing
58 58%
42% 42
Testing
100 100%
0% 0
Browser Testing
47 47%
53% 53
Website Testing
43 43%
57% 57

User comments

Share your experience with using Capybara and Codeception. For example, how are they different and which one is better?
Log in or Post with

Social recommendations and mentions

Capybara might be a bit more popular than Codeception. We know about 11 links to it since March 2021 and only 8 links to Codeception. We are tracking product recommendations and mentions on various public social media platforms and blogs. They can help you identify which product is more popular and what people think of it.

Capybara mentions (11)

  • 16 Best Ruby Frameworks For Web Development [2024]
    Cuba takes help from a lot of other technologies to bring the best of everything. For example, the responses in Cuba are the optimized version of the Rack responses. The templates are integrated via Tilt and testing via Cutest and Capybara. - Source: dev.to / about 2 months ago
  • Using Capybara to test responsive code
    Engineering at Aha! Focuses on using and improving the Capybara test framework. We have added many helpers and additional functionality to make working with Capybara easy. Testing at mobile widths is another chance to improve our testing tooling. Here is the incremental approach that we used to add mobile testing helpers. - Source: dev.to / over 1 year ago
  • Minitest vs. RSpec in Rails
    Since the Capybara library drives the underlying tests, Minitest also has the same syntax. - Source: dev.to / over 1 year ago
  • From partials to ViewComponents: writing reusable front-end code in Rails
    The nice thing about partial templates is that templates are unit-testable with View specs (or similarly in Minitest) and the rendered output can even be verified using Capybara matchers. - Source: dev.to / almost 2 years ago
  • Tip: if you're changing all your form_for to form_with, take the opportunity to make sure all forms are being tested.
    To piggyback: This would be a type of browser test, so you would want to use something like Cypress (https://github.com/testdouble/cypress-rails) or Capybara (https://github.com/teamcapybara/capybara). RSpec has a good integration with Capybara. Cypress is JS-based so it will require some additional config. Source: about 2 years ago
View more

Codeception mentions (8)

  • Any pro-tips for writing automated tests with Selenium PHP?
    Personal experience: - don’t use Behat unless you really needed a “story telling”, it has a intermediate layer Gherkin that you’ll need to code. You can write “Given/When/Then” steps but you’ll also need to write “php code” that will interpret this step. - using real browser be prepared for instability - any interaction with JavaScript can broken/delay execution - be prepared that this tests are call functional... Source: about 1 year ago
  • PHPUnit, do i need to learn it?
    Codeception: https://codeception.com/. Source: over 1 year ago
  • Advice for an older symfony 4.4 project
    I would say to check out Codeception. Codeceptions has modules for Symfony and database generally. Long and short of it is that if you want you can run api tests that go into the controllers and rollback the database afterwards. Source: over 1 year ago
  • Automating Tests using CodeceptJS and Testomat.io: First Steps
    There are enough blog posts about Jest or Cypress already, so let me introduce Codecept. It comes in two flavors. There is Codeception for PHP, and there is CodeceptJS for JavaScript which we will be using here. - Source: dev.to / over 1 year ago
  • Testing PHP Applications
    There are many tools you can use for this purpose, but one I particularly like is CodeCeption. What I like most about it is that it's a unified tool that can be used to perform several types of tests, acceptance being one of them. - Source: dev.to / over 1 year ago
View more

What are some alternatives?

When comparing Capybara and Codeception, you can also consider the following products

Cucumber - Cucumber is a BDD tool for specification of application features and user scenarios in plain text.

PHPUnit - Application and Data, Build, Test, Deploy, and Testing Frameworks

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.

PEST - An elegant PHP testing framework with a focus on simplicity

JUnit - JUnit is a simple framework to write repeatable tests.

RSpec - RSpec is a testing tool for the Ruby programming language born under the banner of Behavior-Driven Development featuring a rich command line program, textual descriptions of examples, and more.