Alternatives to PHPUnit logo

Alternatives to PHPUnit

Codeception, Behat, Kahlan, PhpSpec, and Selenium are the most popular alternatives and competitors to PHPUnit.
356
146
+ 1
4

What is PHPUnit and what are its top alternatives?

PHPUnit is a programmer-oriented testing framework for PHP. It is an instance of the xUnit architecture for unit testing frameworks.
PHPUnit is a tool in the Testing Frameworks category of a tech stack.
PHPUnit is an open source tool with 16.8K GitHub stars and 1.9K GitHub forks. Here鈥檚 a link to PHPUnit's open source repository on GitHub

Top Alternatives to PHPUnit

  • Codeception

    Codeception

    Full-stack testing framework for PHP. Run browsers tests, framework tests, APIs tests, unit tests with ease. ...

  • Behat

    Behat

    It is an open source Behavior-Driven Development framework for PHP. It is a tool to support you in delivering software that matters through continuous communication, deliberate discovery and test-automation. ...

  • Kahlan

    Kahlan

    It is a full-featured Unit & BDD test framework a la RSpec/JSpec which uses a describe-it syntax and moves testing in PHP one step forward. ...

  • PhpSpec

    PhpSpec

    It is a tool which can help you write clean and working PHP code using behaviour driven development or BDD. BDD is a technique derived from test-first development. ...

  • Selenium

    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

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

  • Cucumber

    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. ...

  • Mockito

    Mockito

    It is a mocking framework that tastes really good. It lets you write beautiful tests with a clean & simple API. It doesn鈥檛 give you hangover because the tests are very readable and they produce clean verification errors. ...

PHPUnit alternatives & related posts

Codeception logo

Codeception

54
49
2
Elegant and Efficient Testing for PHP
54
49
+ 1
2
CONS OF CODECEPTION
    No cons available

    related Codeception posts

    Behat logo

    Behat

    92
    41
    2
    A BDD framework for testing your business expectations
    92
    41
    + 1
    2

    related Behat posts

    Kahlan logo

    Kahlan

    1
    3
    0
    A full-featured Unit & BDD test framework
    1
    3
    + 1
    0
    PROS OF KAHLAN
      No pros available
      CONS OF KAHLAN
        No cons available

        related Kahlan posts

        PhpSpec logo

        PhpSpec

        35
        17
        3
        A toolset for behavior driven development
        35
        17
        + 1
        3

        related PhpSpec posts

        related Selenium posts

        Kamil Kowalski
        Engineering Manager at Fresha | 27 upvotes 路 708.2K views

        When you think about test automation, it鈥檚 crucial to make it everyone鈥檚 responsibility (not just QA Engineers'). We started with Selenium and Java, but with our platform revolving around Ruby, Elixir and JavaScript, QA Engineers were left alone to automate tests. Cypress was the answer, as we could switch to JS and simply involve more people from day one. There's a downside too, as it meant testing on Chrome only, but that was "good enough" for us + if really needed we can always cover some specific cases in a different way.

        See more
        Benjamin Poon
        QA Manager - Engineering at HBC Digital | 8 upvotes 路 580K views

        For our digital QA organization to support a complex hybrid monolith/microservice architecture, our team took on the lofty goal of building out a commonized UI test automation framework. One of the primary requisites included a technical minimalist threshold such that an engineer or analyst with fundamental knowledge of JavaScript could automate their tests with greater ease. Just to list a few: - Nightwatchjs - Selenium - Cucumber - GitHub - Go.CD - Docker - ExpressJS - React - PostgreSQL

        With this structure, we're able to combine the automation efforts of each team member into a centralized repository while also providing new relevant metrics to business owners.

        See more
        JUnit logo

        JUnit

        1K
        363
        0
        A programmer-oriented testing framework for Java
        1K
        363
        + 1
        0
        PROS OF JUNIT
          No pros available
          CONS OF JUNIT
            No cons available

            related JUnit posts

            Joshua Dean K眉pper
            CEO at Scrayos UG (haftungsbeschr盲nkt) | 1 upvotes 路 93.8K views

            We use JUnit for our Java Unit and Integration tests in Version 5. Combined with @JMockit2 and @truth (from Google) we perform all kinds of tests on our minecraft, standalone and microservice architecture.

            We prefer JUnit over TestNG because of the bigger community, better support and the generally more agile development. JUnit integrates nicely with most software, while TestNG support is a little more limited.

            See more
            Whitney Carmichael
            Head of Marketing and Sales at ReTest | 1 upvotes 路 61.7K views

            Automated tests are hard to create, often fragile and incomplete, we at retest decided to support a different testing paradigm.

            Therefore, we created recheck - an open source API / CLI. The testing module recheck uses Golden Master, where each webpage can be checked thus defining individual specifications is unnecessary. Test automation is made more robust and the number of false positives are reduced. This means if a test fails with recheck, it was meant to fail.

            Review - our efficient and intuitive GUI application accepts or ignores changes easily and seamlessly. It also allows users to reduce their workload and learning curve with a patented 1-click mechanism. And since review is not a SaaS tool this removes the detested test maintenance.

            Our API/CLI will be an open source software testing tool. While our GUI is a paid fully functioning offline license.

            JUnit Selenium Java GitHub JIRA

            See more
            Cucumber logo

            Cucumber

            602
            527
            14
            Simple, human collaboration.
            602
            527
            + 1
            14
            PROS OF CUCUMBER
            CONS OF CUCUMBER
              No cons available

              related Cucumber posts

              Benjamin Poon
              QA Manager - Engineering at HBC Digital | 8 upvotes 路 580K views

              For our digital QA organization to support a complex hybrid monolith/microservice architecture, our team took on the lofty goal of building out a commonized UI test automation framework. One of the primary requisites included a technical minimalist threshold such that an engineer or analyst with fundamental knowledge of JavaScript could automate their tests with greater ease. Just to list a few: - Nightwatchjs - Selenium - Cucumber - GitHub - Go.CD - Docker - ExpressJS - React - PostgreSQL

              With this structure, we're able to combine the automation efforts of each team member into a centralized repository while also providing new relevant metrics to business owners.

              See more
              Sarah Elson
              Product Growth at LambdaTest | 4 upvotes 路 232.1K views

              @producthunt LambdaTest Selenium JavaScript Java Python PHP Cucumber TeamCity CircleCI With this new release of LambdaTest automation, you can run tests across an Online Selenium Grid of 2000+ browsers and OS combinations to perform cross browser testing. This saves you from the pain of maintaining the infrastructure and also saves you the licensing costs for browsers and operating systems. #testing #Seleniumgrid #Selenium #testautomation #automation #webdriver #producthunt hunted

              See more
              Mockito logo

              Mockito

              454
              87
              0
              Tasty mocking framework for unit tests in Java
              454
              87
              + 1
              0
              PROS OF MOCKITO
                No pros available
                CONS OF MOCKITO
                  No cons available

                  related Mockito posts