Alternatives to Behat logo

Alternatives to Behat

Selenium, PHPUnit, Cucumber, Codeception, and PhpSpec are the most popular alternatives and competitors to Behat.
85
54
+ 1
2

What is Behat and what are its top alternatives?

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.
Behat is a tool in the Testing Frameworks category of a tech stack.
Behat is an open source tool with 3.7K GitHub stars and 582 GitHub forks. Here’s a link to Behat's open source repository on GitHub

Top Alternatives to Behat

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

  • PHPUnit

    PHPUnit

    PHPUnit is a programmer-oriented testing framework for PHP. 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. ...

  • Codeception

    Codeception

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

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

  • Cypress

    Cypress

    Cypress is a front end automated testing application created for the modern web. Cypress is built on a new architecture and runs in the same run-loop as the application being tested. As a result Cypress provides better, faster, and more reliable testing for anything that runs in a browser. Cypress works on any front-end framework or website. ...

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

Behat alternatives & related posts

Selenium logo

Selenium

11K
8.4K
519
Web Browser Automation
11K
8.4K
+ 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 · 749.4K 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
PHPUnit logo

PHPUnit

620
221
11
Testing framework for PHP
620
221
+ 1
11
PROS OF PHPUNIT
  • 3
    TDD Unit Testing
  • 2
    TDD Acceptance Testing
  • 2
    TDD Integration Testing
  • 1
    The de facto standard for xUnit testing in PHP
  • 1
    TDD Unit Testing
  • 1
    Unit Testing
  • 1
    Software Quality
CONS OF PHPUNIT
  • 1
    Mocked services require more effort and understanding

related PHPUnit posts

Shared insights
on
BehatBehatPHPUnitPHPUnit

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

See more
Cucumber logo

Cucumber

760
714
25
Simple, human collaboration.
760
714
+ 1
25
PROS OF CUCUMBER
  • 18
    Simple Syntax
  • 3
    Simple usage
  • 2
    Nice report
  • 2
    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 · 749.4K 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 · 322.8K 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
    Codeception logo

    Codeception

    86
    76
    3
    Elegant and Efficient Testing for PHP
    86
    76
    + 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

      PhpSpec logo

      PhpSpec

      50
      21
      3
      A toolset for behavior driven development
      50
      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

      Cypress logo

      Cypress

      1.4K
      1.5K
      100
      When testing is easy, developers build better things faster and with confidence.
      1.4K
      1.5K
      + 1
      100
      PROS OF CYPRESS
      • 25
        Open source
      • 18
        Great documentation
      • 17
        Fast
      • 16
        Simple usage
      • 10
        Cross Browser testing
      • 9
        Easy us with CI
      • 4
        Npm install cypress only
      • 1
        Good for beginner automation engineers
      CONS OF CYPRESS
      • 19
        Cypress is weak at cross-browser testing
      • 12
        Switch tabs : Cypress can'nt support
      • 11
        No iFrame support
      • 8
        No file upload support
      • 8
        No xPath support
      • 8
        No multiple domain support
      • 8
        No page object support
      • 7
        Re-run failed tests retries not supported yet
      • 7
        Cypress doesn't support native app
      • 7
        No support for multiple tab control
      • 6
        No support for multiple browser control
      • 6
        No support for Safari
      • 4
        $20/user/thread for reports
      • 4
        Not freeware
      • 4
        Adobe
      • 3
        No 'WD wire protocol' support
      • 3
        Using a non-standard automation protocol

      related Cypress 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
      Robert Zuber

      We are in the process of adopting Next.js as our React framework and using Storybook to help build our React components in isolation. This new part of our frontend is written in TypeScript, and we use Emotion for CSS/styling. For delivering data, we use GraphQL and Apollo. Jest, Percy, and Cypress are used for testing.

      See more
      JUnit logo

      JUnit

      1.8K
      463
      0
      A programmer-oriented testing framework for Java
      1.8K
      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 · 141.5K 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

          750
          120
          0
          Tasty mocking framework for unit tests in Java
          750
          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