Software Alternatives & Reviews

Codeception VS Capybara

Compare Codeception VS Capybara and see what are their differences

Codeception logo Codeception

Codeception is a new full-stack testing PHP framework.

Capybara logo Capybara

Capybara helps you test web applications by simulating how a real user would interact with your app.
  • Codeception Landing page
    Landing page //
    2022-08-03
  • Capybara Landing page
    Landing page //
    2022-11-05

Codeception

Categories
  • Browser Testing
  • Testing
  • Website Testing
  • Automated Testing
Website codeception.com
Details $

Capybara

Categories
  • Testing
  • Automated Testing
  • Browser Testing
  • Website Testing
Website github.com
Details $-

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

Capybara videos

Kalibrgun CAPYBARA Released - FIRST REVIEW 2019

More videos:

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

Category Popularity

0-100% (relative to Codeception and Capybara)
Automated Testing
42 42%
58% 58
Browser Testing
53 53%
47% 47
Testing
29 29%
71% 71
Website Testing
54 54%
46% 46

User comments

Share your experience with using Codeception and Capybara. 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.

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: 12 months 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

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 1 month 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

What are some alternatives?

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

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

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

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

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.

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.

TestingWhiz - TestingWhiz is a codeless test automation tool for software, mobile and web.