JavaScript Testing Frameworks

Open-source JavaScript projects categorized as Testing Frameworks

Top 23 JavaScript Testing Framework Projects

Testing Frameworks
  • Cypress

    Fast, easy and reliable testing for anything that runs in a browser.

    Project mention: Scaling Cypress Tests: Parallelise your End-to-End Tests with Testkube | dev.to | 2024-10-28

    However, starting with version 12, Cypress blocked projects using the 'cypress-cloud' module, impacting these third-party services. SorryCypress now only works with older Cypress versions, while Currents.dev has ended its official support for Cypress. This change has disrupted many teams' testing workflows.

  • CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  • mocha

    ☕️ simple, flexible, fun javascript test framework for node.js & the browser

    Project mention: Unit testing for NodeJS using Mocha and Chai | dev.to | 2024-10-24

    Mocha is a feature-rich JavaScript test framework that runs on Node.js, making asynchronous testing simple and enjoyable. It provides functions that execute in a specific order, collecting test results and offering accurate reporting.

  • ava

    Node.js test runner that lets you develop with confidence 🚀

    Project mention: Painless CLI integration testing | dev.to | 2024-01-10

    We use Jest Framework for testing. Jest is not a dogma, and, of course, in its place can be any other test runner, such as Mocha or Ava. Let's focus on tests. I'll provide a short example because I don’t want to waste your time. You can find the full version here. It's crucial to read the comments in the code below. Let's go!

  • Enzyme

    JavaScript Testing utilities for React

    Project mention: How we have managed to run Enzyme tests with React 18 app. | dev.to | 2024-10-27

    Like many other companies with mature software, we found ourselves at a crossroads with our React application. The app, initially developed in early 2019, was built with React 16 and used Enzyme for unit testing. Over the past five years, the app grew, evolved, gained new features, and went though minor and major refactorings. Obviously, as responsible engineers we always maintained unit test coverage around 70-80%. However, our React version had remained unchanged.

  • Nightmare

    A high-level browser automation library.

  • jasmine

    Simple JavaScript testing framework for browsers and node.js

    Project mention: An Introduction to Unit Testing in Node.js | dev.to | 2024-08-22

    Jasmine is a BDD testing framework for Node.js projects and other JavaScript applications. The library comes with no external dependencies, so it is simple to use with a low overhead. It's the oldest of the three tools we've covered, having been around since 2010. Jasmine runs on any JavaScript platform and is compatible with other testing libraries.

  • karma

    Spectacular Test Runner for JavaScript

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  • nightwatch

    Integrated end-to-end testing framework written in Node.js and using W3C Webdriver API. Developed at @browserstack

    Project mention: Automating Android TV app with Nightwatch | dev.to | 2024-04-25

    Nightwatch which will prompt to create a boilerplate framework specifically for Mobile / TV apps.

  • TestCafe

    A Node.js tool to automate end-to-end web testing.

  • Sinon.JS

    Test spies, stubs and mocks for JavaScript.

    Project mention: Best Testing Practices in Node.js | dev.to | 2024-10-30

    Libraries like Sinon.JS provide robust support for stubs and spies, enabling precise control and inspection of your code's interactions. By favoring stubs and spies, you can keep your tests concise, easier to understand, and less prone to errors.

  • istanbul

    Yet another JS code coverage tool that computes statement, line, function and branch coverage with module loader hooks to transparently add coverage when running tests. Supports all JS coverage use cases including unit tests, server side functional tests and browser tests. Built for scale.

  • chai

    BDD / TDD assertion framework for node.js and the browser that can be paired with any testing framework.

    Project mention: Rest API Testing: How to test Rest APIs properly! | dev.to | 2024-08-07

    Unit Testing: Yes, Rest APIs can also be tested using unit tests. This involves executing the HTTP requests and validating the result. Although this method initially requires more effort, it offers the advantage of complete integration into your development process and enables continuous testing. Each programming language has its own tools. I mainly develop with JavaScript, so I can show you a practical example here. I use Mocha and Chai as testing frameworks. For each test, one or more requests are sent to the corresponding Rest API endpoints and the result is validated.

  • qunit

    🔮 An easy-to-use JavaScript unit testing framework.

    Project mention: My three epiphanies of TDD | dev.to | 2024-07-14

    The tooling for testing JavaScript was far from what we have today, neither was the editor support. To test code that manipulates the DOM, you basically needed to run them in a browser. For that purpose we had an HTML page that would load QUnit, our test code, and our production code.

  • taiko

    A node.js library for testing modern web applications

  • slimerjs

    A scriptable browser like PhantomJS, based on Firefox

    Project mention: SlimerJS: A headless browser (compatible with CasperJS) | news.ycombinator.com | 2024-05-14
  • proxyquire

    🔮 Proxies nodejs require in order to allow overriding dependencies during testing.

  • expect.js

    Minimalistic BDD-style assertions for Node.JS and the browser.

  • blanket

    blanket.js is a simple code coverage library for javascript. Designed to be easy to install and use, for both browser and nodejs.

  • Nullstack

    Feature-Driven Full Stack JavaScript Components

  • FrintJS

    Modular JavaScript framework for building scalable and reactive applications

    Project mention: Tools and libraries widely used in micro frontend architectures! | dev.to | 2024-08-09

    Official Website

  • DalekJS

    [unmaintained] DalekJS Base framework

  • autochecker

    ♻️ Test your libraries in many different versions of NodeJS, Ruby, Java and many other languages

  • totoro

    A simple and stable cross-browser testing tool. 简单稳定的跨浏览器测试工具。

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

JavaScript Testing Frameworks discussion

Log in or Post with

JavaScript Testing Frameworks related posts

  • How we have managed to run Enzyme tests with React 18 app.

    1 project | dev.to | 27 Oct 2024
  • Unit testing for NodeJS using Mocha and Chai

    1 project | dev.to | 24 Oct 2024
  • An Introduction to Unit Testing in Node.js

    4 projects | dev.to | 22 Aug 2024
  • Building a Web 3.0 E-commerce App with Hardhat and React.js

    2 projects | dev.to | 18 Aug 2024
  • 🧩🪰 Practical Debugging Guide: The Art of Solving Frontend Problems

    2 projects | dev.to | 13 Aug 2024
  • Rest API Testing: How to test Rest APIs properly!

    3 projects | dev.to | 7 Aug 2024
  • Cypress: Fast, Reliable Testing for Anything in a Browser

    1 project | news.ycombinator.com | 6 Aug 2024
  • A note from our sponsor - SaaSHub
    www.saashub.com | 5 Nov 2024
    SaaSHub helps you find the best software and product alternatives Learn more →

Index

What are some of the best open-source Testing Framework projects in JavaScript? This list will help you:

Project Stars
1 Cypress 47,003
2 mocha 22,598
3 ava 20,732
4 Enzyme 19,955
5 Nightmare 19,543
6 jasmine 15,747
7 karma 11,957
8 nightwatch 11,826
9 TestCafe 9,820
10 Sinon.JS 9,656
11 istanbul 8,702
12 chai 8,130
13 qunit 4,010
14 taiko 3,584
15 slimerjs 3,001
16 proxyquire 2,749
17 expect.js 2,106
18 blanket 1,406
19 Nullstack 773
20 FrintJS 756
21 DalekJS 695
22 autochecker 596
23 totoro 564

Sponsored
CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai

Did you konow that JavaScript is
the 3rd most popular programming language
based on number of metions?