Software Alternatives, Accelerators & Startups

Codeception VS Testcontainers

Compare Codeception VS Testcontainers and see what are their differences

Codeception logo Codeception

Codeception is a new full-stack testing PHP framework.

Testcontainers logo Testcontainers

Testcontainers is a modern Java library that comes with the exclusive support of Junit tests.
  • Codeception Landing page
    Landing page //
    2022-08-03
  • Testcontainers Landing page
    Landing page //
    2023-10-07

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

Testcontainers videos

Testcontainers – From Zero to Hero

More videos:

  • Review - Testcontainers: a Year-in-review (Kevin Wittek)
  • Review - Testcontainers: a Year-in-review (Kevin Wittek)

Category Popularity

0-100% (relative to Codeception and Testcontainers)
Automated Testing
66 66%
34% 34
Online Services
0 0%
100% 100
Browser Testing
74 74%
26% 26
Website Testing
100 100%
0% 0

User comments

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

Social recommendations and mentions

Based on our record, Testcontainers should be more popular than Codeception. It has been mentiond 16 times since March 2021. 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: 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: almost 2 years 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 / almost 2 years 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 / almost 2 years ago
View more

Testcontainers mentions (16)

  • SpringAI, llama3 and pgvector: bRAGging rights!
    To support the exploration, I've developed a simple Retrieval Augmented Generation (RAG) workflow that works completely locally on the laptop for free. If you're interested, you can find the code itself here. Basically, I've used Testcontainers to create a Postgres database container with the pgvector extension to store text embeddings and an open source LLM with which I send requests to: Meta's llama3 through... - Source: dev.to / 1 day ago
  • Revolutionize Your Unit Testing with Testcontainers and Docker
    Testcontainers is a very neat open source framework/project I just discovered. It enables developers to create unit tests using throwaway, lightweight instances of e.g. a database running in Docker containers. - Source: dev.to / 17 days ago
  • How Enabling Slow Query Log Enhances Postgres Observability
    However, if you run PostgreSQL only for a very short period, for instance during your automated tests, then you may have no technical way of reconfiguring it. This may be the case with Testcontainers. Typically, you may run some initialization code just before your actual test suite to initialize the dependencies like storage emulators or database servers. Testcontainers takes care of running them as Docker... - Source: dev.to / about 2 months ago
  • General Availability of .NET Aspire: Simplifying .NET Cloud-Native Development
    Infrastructure as code in C# is already supported by Pulumi[1]. However, developing anything significant requires a lot of copying values from one part of the stack to another, lots of magic strings and lots of combinations of parameters that don't work. Plus sometimes you choose a combination of parameters that works until your cloud provider upgrades Kubernetes or whatever and now that specific version of k8s... - Source: Hacker News / 26 days ago
  • Spring Tests with TestContainers
    You can read more about TestContainers in the official documentation. - Source: dev.to / about 1 month ago
View more

What are some alternatives?

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

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

Arquillian - Arquillian is an open-source testing platform that offers no more container lifecycle, deployment hassles, and mocks.

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

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

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.