Alternatives to pytest logo

Alternatives to pytest

Jasmine, Cucumber, Avocado, behave, and unittest are the most popular alternatives and competitors to pytest.
329
173
+ 1
0

What is pytest and what are its top alternatives?

A framework makes it easy to write small tests, yet scales to support complex functional testing for applications and libraries. It is a mature full-featured Python testing tool.
pytest is a tool in the Testing Frameworks category of a tech stack.
pytest is an open source tool with 7.4K GitHub stars and 1.7K GitHub forks. Here’s a link to pytest's open source repository on GitHub

Top Alternatives to pytest

  • Jasmine

    Jasmine

    Jasmine is a Behavior Driven Development testing framework for JavaScript. It does not rely on browsers, DOM, or any JavaScript framework. Thus it's suited for websites, Node.js projects, or anywhere that JavaScript can run. ...

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

  • Avocado

    Avocado

    Avocado is an open source interaction design toolbox built by‚Äč IDEO.‚Äč It ‚Äčenables designers to make quick interactive prototypes without writing a line of code.‚Äč ‚ÄčBuilt on top of Facebook's Origami framework, Avocado provides ready-to-use patches that can be easily combined to create fully-customized prototypes.‚Äč Official announcement: http://labs.ideo.com/2014/05/27/avocado/ ...

  • behave

    behave

    It is behaviour-driven development, Python style. It uses tests written in a natural language style, backed up by Python code. ...

  • unittest

    unittest

    It is python’s xUnit style framework. It works much the same as the other styles of xUnit, and if you’re familiar with unit testing in other languages, this framework (or derived versions), may be the most comfortable for you. ...

  • TestNG

    TestNG

    It is a testing framework designed to simplify a broad range of testing needs, it covers all categories of tests: unit, functional, end-to-end, integration, etc.Run your tests in arbitrarily big thread pools with various policies available (all methods in their own thread, one thread per test class, etc. ...

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

pytest alternatives & related posts

Jasmine logo

Jasmine

1.2K
1.2K
182
DOM-less simple JavaScript testing framework
1.2K
1.2K
+ 1
182
PROS OF JASMINE
  • 61
    Can also be used for tdd
  • 49
    Open source
  • 17
    Originally from RSpec
  • 15
    Great community
  • 14
    No dependencies, not even DOM
  • 10
    Easy to setup
  • 8
    Simple
  • 3
    Created by Pivotal-Labs
  • 2
    Works with KarmaJs
  • 1
    Async and promises are easy calls with "done"
  • 1
    Jasmine is faster than selenium in angular application
  • 1
    SpyOn to fake calls
CONS OF JASMINE
  • 2
    Unfriendly error logs

related Jasmine posts

Joshua Dean K√ľpper
CEO at Scrayos UG (haftungsbeschränkt) · | 6 upvotes · 78.3K views

For our internal team and collaboration panel we use Nuxt.js (with TypeScript that is transpiled into ES6), Webpack and npm. We enjoy the opinionated nature of Nuxt.js over vanilla Vue.js, as we would end up using all of the components Nuxt.js incorporates anyways and we can adhere to the conventions setup by the Nuxt.js project, which allows us to get better support in case we run into any dead ends. Webpack allows us to create reproducable builds and also debug our application with hot reloads, which greately increased the pace at which we are able to perform and test changes. We also incorporated a lot of testing (ESLint, Chai, Jasmine, Nightwatchjs) into our pipelines and can trigger those jobs through GitLab CI. All packages are fetched through npm, so that we can keep our git repositories slim and are notified of new updates aswell as reported security flaws.

See more

Switched from Jasmine with Karma that come setup by Angular CLI to use Jest instead, since Jasmine and Karma were very finicky in my setup and had to be reconfigured frequently to run tests properly.

Jest was also easier to integrate into my workflow with Visual Studio Code.

See more
Cucumber logo

Cucumber

680
631
22
Simple, human collaboration.
680
631
+ 1
22
PROS OF CUCUMBER
  • 16
    Simple Syntax
  • 2
    Nice report
  • 2
    Simple usage
  • 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 · 672.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 · 283.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
    Avocado logo

    Avocado

    6
    15
    0
    An interaction design toolbox
    6
    15
    + 1
    0
    PROS OF AVOCADO
      Be the first to leave a pro
      CONS OF AVOCADO
        Be the first to leave a con

        related Avocado posts

        behave logo

        behave

        41
        64
        0
        A Python library to implement BDD tests
        41
        64
        + 1
        0
        PROS OF BEHAVE
          Be the first to leave a pro
          CONS OF BEHAVE
            Be the first to leave a con

            related behave posts

            unittest  logo

            unittest

            35
            31
            0
            A unit testing framework for Python
            35
            31
            + 1
            0
            PROS OF UNITTEST
              Be the first to leave a pro
              CONS OF UNITTEST
                Be the first to leave a con

                related unittest posts

                TestNG logo

                TestNG

                91
                116
                0
                A testing framework inspired from JUnit and NUnit
                91
                116
                + 1
                0
                PROS OF TESTNG
                  Be the first to leave a pro
                  CONS OF TESTNG
                    Be the first to leave a con

                    related TestNG posts

                    Joshua Dean K√ľpper
                    CEO at Scrayos UG (haftungsbeschränkt) · | 1 upvote · 120.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
                    JUnit logo

                    JUnit

                    1.1K
                    430
                    0
                    A programmer-oriented testing framework for Java
                    1.1K
                    430
                    + 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 · 120.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

                        499
                        110
                        0
                        Tasty mocking framework for unit tests in Java
                        499
                        110
                        + 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