Need advice about which tool to choose?Ask the StackShare community!

AVA

110
204
+ 1
32
Mocha

10.4K
2.8K
+ 1
430
QUnit

871
83
+ 1
17
Get Advice from developers at your company using StackShare Enterprise. Sign up for StackShare Enterprise.
Learn More
Pros of AVA
Pros of Mocha
Pros of QUnit
  • 12
    Simple and fast
  • 6
    Parallel test running
  • 5
    Open source
  • 3
    Promise support
  • 3
    Test code Instrumenting
  • 2
    Babel integration
  • 1
    ESM Ready
  • 137
    Open source
  • 102
    Simple
  • 81
    Promise support
  • 48
    Flexible
  • 29
    Easy to add support for Generators
  • 12
    For browser and server testing
  • 7
    Curstom assertion libraries
  • 5
    Works with Karma
  • 3
    No other better tools
  • 1
    Simple setup
  • 1
    Works with saucelabs
  • 1
    Lots of tutorials and help online
  • 1
    Default reporter is nice, clean, and itemized
  • 1
    Works with BrowserStack
  • 1
    Simple integration testing
  • 6
    Simple
  • 4
    Open Source
  • 3
    Promise support
  • 3
    Easy setup
  • 1
    Excellent GUI

Sign up to add or upvote prosMake informed product decisions

Cons of AVA
Cons of Mocha
Cons of QUnit
  • 1
    No built-in support for DOM
  • 1
    No source files compilation
  • 3
    Cannot test a promisified functions without assertion
  • 2
    No assertion count in results
  • 1
    Not as many reporter options as Jest
    Be the first to leave a con

    Sign up to add or upvote consMake informed product decisions

    What is AVA?

    Even though JavaScript is single-threaded, IO in Node.js can happen in parallel due to its async nature. AVA takes advantage of this and runs your tests concurrently, which is especially beneficial for IO heavy tests. In addition, test files are run in parallel as separate processes, giving you even better performance and an isolated environment for each test file.

    What is Mocha?

    Mocha is a feature-rich JavaScript test framework running on node.js and the browser, making asynchronous testing simple and fun. Mocha tests run serially, allowing for flexible and accurate reporting, while mapping uncaught exceptions to the correct test cases.

    What is QUnit?

    QUnit is a powerful, easy-to-use JavaScript unit testing framework. It's used by the jQuery, jQuery UI and jQuery Mobile projects and is capable of testing any generic JavaScript code, including itself!

    Need advice about which tool to choose?Ask the StackShare community!

    What companies use AVA?
    What companies use Mocha?
    What companies use QUnit?

    Sign up to get full access to all the companiesMake informed product decisions

    What tools integrate with AVA?
    What tools integrate with Mocha?
    What tools integrate with QUnit?
      No integrations found

      Sign up to get full access to all the tool integrationsMake informed product decisions

      Blog Posts

      JavaScriptGitHubNode.js+29
      14
      13392
      JavaScriptGitHubGit+33
      20
      2080
      What are some alternatives to AVA, Mocha, and QUnit?
      Jest
      Jest provides you with multiple layers on top of Jasmine.
      EVA
      Equipping you with hundreds of symbols and dozens or styles configurations, it makes sure the design stays consistent across all of your applications and platforms.
      Chai
      It is a BDD / TDD assertion library for node and the browser that can be delightfully paired with any javascript testing framework. It has several interfaces that allow the developer to choose the most comfortable. The chain-capable BDD styles provide an expressive language & readable style, while the TDD assert style provides a more classical feel.
      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.
      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.
      See all alternatives