JavaScript Testing

Open-source JavaScript projects categorized as Testing

Top 23 JavaScript Testing Projects

  • GitHub repo nodebestpractices

    :white_check_mark: The Node.js best practices list (June 2021)

    Project mention: How To Structure Your Node.js Project To Fit Industry Standard Using RCSM Layered Architecture | reddit.com/r/node | 2021-06-08

    For more, see the nodebestpractices Github repo.

  • GitHub repo Cypress

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

    Project mention: Playwright (Test Automation Library) for .NET Is Now Stable | news.ycombinator.com | 2021-06-10
  • GitHub repo mocha

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

    Project mention: API Testing Tools in JavaScript | dev.to | 2021-06-06

    The library offers a BDD testing style and fully exploits javascript promises - the resulting tests are simple, clear and expressive. Chakram is built on node.js, mocha, chai and request.

  • GitHub repo Enzyme

    JavaScript Testing utilities for React

    Project mention: Interview questions: React | dev.to | 2021-05-31

    Shallow rendering components using Enzyme

  • GitHub repo ava

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

    Project mention: Deno v1.10 Released | news.ycombinator.com | 2021-05-12

    I know a fella working on a Deno port of Ava (https://github.com/avajs/ava). When that and Koa are ported or compatible, I'll be giving Deno a legitimate go.

  • GitHub repo jasmine

    Simple JavaScript testing framework for browsers and node.js

    Project mention: Jasmine Cheat Sheet | dev.to | 2021-05-11
  • GitHub repo react-testing-library

    🐐 Simple and complete React DOM testing utilities that encourage good testing practices.

    Project mention: React, TypeScript, and TDD | dev.to | 2021-05-11

    react-testing-library for test helpers and an assertion library

  • GitHub repo javascript-testing-best-practices

    📗🌐 🚢 Comprehensive and exhaustive JavaScript & Node.js testing best practices (June 2021)

    Project mention: NodeJs Best practices | reddit.com/r/node | 2021-04-16

    His JS testing best practices is gold too https://github.com/goldbergyoni/javascript-testing-best-practices

  • GitHub repo volkswagen

    :see_no_evil: Volkswagen detects when your tests are being run in a CI server, and makes them pass.

    Project mention: Who is Testing? | reddit.com/r/ProgrammerHumor | 2021-06-03
  • GitHub repo nightwatch

    End-to-end testing framework written in Node.js and using the Webdriver API

    Project mention: How to test views that are rendered in a browser, to make sure there are no errors on the page? | reddit.com/r/learnjavascript | 2021-05-25

    You want either a library that can run Selenium for you, like Nightwatch, or Cypress.

  • GitHub repo Detox

    Gray box end-to-end testing and automation framework for mobile apps

    Project mention: Detox: Gray box end-to-end testing and automation library for mobile apps | news.ycombinator.com | 2021-06-10
  • GitHub repo tape

    tap-producing test harness for node and browsers

    Project mention: What are some popular/suggested NPM packages for unit testing coverage? | reddit.com/r/learnjavascript | 2021-01-25

    Tape is a very lightweight test harness for Node. I don't believe it has any code coverage feature. I may ask them if there are separate NPM packages to measure code coverage that are compatible with Tape.

  • GitHub repo nyc

    the Istanbul command line interface

    Project mention: What should my first unit tests be? | reddit.com/r/node | 2021-06-12
  • GitHub repo web-skills

    A visual overview of useful skills to learn as a web developer

    Project mention: A visual web dev road map with links to useful skills to learn | reddit.com/r/learnprogramming | 2021-05-26

    GitHub repo: https://github.com/andreasbm/web-skills

  • GitHub repo axe-core

    Accessibility engine for automated Web UI testing

    Project mention: WebAIM: Screen Reader User Survey #9 | news.ycombinator.com | 2021-05-07

    Hi I'm not blind but wanna just dump some links here I bookmarked related to accessibility. Might be useful.

    [1] The actively developed version of Mozilla TTS, named coqui-TTS. My understanding is that the original team was let go from Mozilla and they formed coqui.

    https://github.com/coqui-ai/TTS

    They are also on Element Matrix:

    https://matrix.to/#/#coqui-ai_TTS:gitter.im

    [2] FOSS automated accessibility testing engine for websites and other HTML-based user interfaces:

    https://github.com/dequelabs/axe-core

    [3] Emacspeak, developed by someone who was blind since childhood:

    https://en.wikipedia.org/wiki/Emacspeak

    [4] UK government websites are famous for being accessible. They have design guidelines:

    https://design-system.service.gov.uk/

    [5] Similar system for the US govt.

    https://designsystem.digital.gov/

  • GitHub repo qunit

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

    Project mention: The Frontend Hitchhiker's Guide: UI Libraries | dev.to | 2021-05-28

    However, jQuery is still used today and has spawned other projects like jQuery UI and Quint.

  • GitHub repo dredd

    Language-agnostic HTTP API Testing Tool

    Project mention: Front End UI Test Automation With Mock API | reddit.com/r/csharp | 2021-05-18

    To test the API, I recommend a proper API testing framework that can run a full test suite without you having to write a single test case. In this area, I recommend Dredd and schemathesis. These frameworks will get you covered when it comes to ensuring that the API server complies with the API specification. You may find Dredd a bit confusing at the beginning, in which case I recommend a tutorial I wrote a while ago about testing with Dredd. In addition, you can consider using just-apis, which allows you to define your own test cases for the API in YAML files (so no programming required).

  • GitHub repo CodeceptJS

    Supercharged End 2 End Testing Framework for NodeJS

    Project mention: Running CodeceptJS in BrowserStack Automate | dev.to | 2021-02-17

    Using a service like BrowserStack you can take your local automation tests to the skies. This is made possible by directing CodeceptJS to point to BrowserStack instead of running locally.

  • GitHub repo pa11y

    Pa11y is your automated accessibility testing pal

    Project mention: HTML5 Resource | dev.to | 2021-02-24

    Pa11y - automated accessibility testing

  • GitHub repo maildev

    :mailbox: SMTP Server + Web Interface for viewing and testing emails during development.

    Project mention: Django Mail Debug with MailDev w/ Docker for four Steps. | dev.to | 2021-02-17

    In my case, I used docker-compose to do this, but please read accordingly. Of course, you can also use Docker commands to run it, and even if you don't have Docker environment, you can install and use it with npm command. For more information, please look at official document here .

  • GitHub repo jest-image-snapshot

    ✨ Jest matcher for image comparisons. Most commonly used for visual regression testing.

    Project mention: Automated visual regression testing with TypeScript, Puppeteer, Jest and Jest Image Snapshot | dev.to | 2021-04-16

    Github repository of Jest-image-snapshot: https://github.com/americanexpress/jest-image-snapshot

  • GitHub repo toxy

    Hackable HTTP proxy for resiliency testing and simulated network conditions

  • GitHub repo power-assert

    Power Assert in JavaScript. Provides descriptive assertion messages through standard assert interface. No API is the best API.

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). The latest post mention was on 2021-06-12.

Index

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

Project Stars
1 nodebestpractices 67,024
2 Cypress 31,686
3 mocha 20,558
4 Enzyme 19,585
5 ava 19,064
6 jasmine 15,148
7 react-testing-library 14,614
8 javascript-testing-best-practices 11,841
9 volkswagen 11,403
10 nightwatch 10,737
11 Detox 8,109
12 tape 5,484
13 nyc 4,680
14 web-skills 4,056
15 axe-core 3,910
16 qunit 3,882
17 dredd 3,669
18 CodeceptJS 3,401
19 pa11y 2,994
20 maildev 2,856
21 jest-image-snapshot 2,802
22 toxy 2,686
23 power-assert 2,624