Alternatives to PHPUnit logo

Alternatives to PHPUnit

Codeception, Behat, Kahlan, PhpSpec, and Selenium are the most popular alternatives and competitors to PHPUnit.
620
221
+ 1
11

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 18.1K GitHub stars and 2K GitHub forks. Here’s 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. ...

  • Mockito

    Mockito

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

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

PHPUnit alternatives & related posts

Codeception logo

Codeception

87
77
3
Elegant and Efficient Testing for PHP
87
77
+ 1
3
PROS OF CODECEPTION
  • 3
    Easy to get up and running some simple tests
CONS OF CODECEPTION
    Be the first to leave a con

    related Codeception posts

    Behat logo

    Behat

    85
    54
    2
    A BDD framework for testing your business expectations
    85
    54
    + 1
    2
    PROS OF BEHAT
    • 1
      BDD Acceptance Testing
    • 1
      Easy Ubiquitous language integration reusing code
    CONS OF BEHAT
      Be the first to leave a con

      related Behat posts

      Shared insights
      on
      BehatBehatPHPUnitPHPUnit

      What is the best solution (PHPUnit or Behat) for test automation (unit and functional tests)?

      See more
      Kahlan logo

      Kahlan

      1
      5
      0
      A full-featured Unit & BDD test framework
      1
      5
      + 1
      0
      PROS OF KAHLAN
        Be the first to leave a pro
        CONS OF KAHLAN
          Be the first to leave a con

          related Kahlan posts

          PhpSpec logo

          PhpSpec

          49
          21
          3
          A toolset for behavior driven development
          49
          21
          + 1
          3
          PROS OF PHPSPEC
          • 1
            BDD Unit Testing
          • 1
            Better for code optimisation (BDD over TDD)
          • 1
            Mocked dependant services by default
          CONS OF PHPSPEC
          • 1
            Less support; devs are more used to PHP Unit

          related PhpSpec posts

          Selenium logo

          Selenium

          11K
          8.5K
          519
          Web Browser Automation
          11K
          8.5K
          + 1
          519
          PROS OF SELENIUM
          • 169
            Automates browsers
          • 154
            Testing
          • 101
            Essential tool for running test automation
          • 24
            Record-Playback
          • 24
            Remote Control
          • 8
            Data crawling
          • 7
            Supports end to end testing
          • 6
            Functional testing
          • 6
            Easy set up
          • 4
            The Most flexible monitoring system
          • 3
            Easy to integrate with build tools
          • 3
            End to End Testing
          • 2
            Integration Tests
          • 2
            Comparing the performance selenium is faster than jasm
          • 2
            Record and playback
          • 2
            Compatible with Python
          • 2
            Easy to scale
          • 0
            Integrated into Selenium-Jupiter framework
          CONS OF SELENIUM
          • 7
            Flaky tests
          • 2
            Slow as needs to make browser (even with no gui)

          related Selenium posts

          Kamil Kowalski
          Lead Architect at Fresha · | 27 upvotes · 1.2M views

          When you think about test automation, it’s crucial to make it everyone’s 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 · 752.6K 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

          1.9K
          463
          0
          A programmer-oriented testing framework for Java
          1.9K
          463
          + 1
          0
          PROS OF JUNIT
            Be the first to leave a pro
            CONS OF JUNIT
              Be the first to leave a con

              related JUnit posts

              We are looking for a Testing Tool that can integrate with Java/ React/ Go/ Python/ Node.js. Which amongst the three tools JUnit, NUnit & Selenium would be the best for this use case?

              See more
              Joshua Dean Küpper
              CEO at Scrayos UG (haftungsbeschränkt) · | 1 upvote · 142.3K 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
              Mockito logo

              Mockito

              800
              120
              0
              Tasty mocking framework for unit tests in Java
              800
              120
              + 1
              0
              PROS OF MOCKITO
                Be the first to leave a pro
                CONS OF MOCKITO
                  Be the first to leave a con

                  related Mockito posts

                  Cucumber logo

                  Cucumber

                  763
                  716
                  25
                  Simple, human collaboration.
                  763
                  716
                  + 1
                  25
                  PROS OF CUCUMBER
                  • 19
                    Simple Syntax
                  • 4
                    Simple usage
                  • 3
                    Nice report
                  • 3
                    Huge community
                  CONS OF CUCUMBER
                    Be the first to leave a con

                    related Cucumber posts

                    Benjamin Poon
                    QA Manager - Engineering at HBC Digital · | 8 upvotes · 752.6K 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 · 324.4K 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