JavaScript Testing

Open-source JavaScript projects categorized as Testing | Edit details

Top 23 JavaScript Testing Projects

  • GitHub repo nodebestpractices

    :white_check_mark: The Node.js best practices list (January 2022)

    Project mention: express-ts | | 2022-01-14
  • GitHub repo Cypress

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

    Project mention: Cypress and Flaky Tests: How to Handle Timeout Errors | | 2022-01-13

    Cypress is an automated end-to-end testing framework with over three million weekly open-source downloads at the time of this writing. It’s steady popularity isn’t without reason; the perks of using Cypress include, among other things, a snapshot visualization tool, automatic reloads after any change in your tests, and the ability to control network requests and responses without ever hitting your server.

  • SonarQube

    Static code analysis for 29 languages.. Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.

  • GitHub repo mocha

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

    Project mention: Simple Test-Driven Development (TDD) With Mocha and Node.js | | 2022-01-16

    Here is a quick tutorial on Test-Driven Development (TDD) with the Mocha test tool and Node.js.

  • GitHub repo Enzyme

    JavaScript Testing utilities for React

    Project mention: Enzyme is dead. Now what? | | 2021-12-20

    React 17 Release Candidate came out. Shortly after, an issue has been raised in Enzyme repository to add support for React 17. Immediately after, @layershifter has opened a PR adding an official enzyme-adapter-react-17.

  • GitHub repo ava

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

    Project mention: just let their domain expire | | 2021-12-17

    I really enjoy Ava [1] or anything assert-tape-like [2]. "uvu" [3] is getting a lot of love lately, but it's very feature limited and much of it's touted advantages are at the detriment to feature set.




    Jest is great for front-end (or full stack integration) testing, but I feel it's specialized for that use-case and doesn't always play nice with backend/middle-tier testing needs.

  • GitHub repo react-testing-library

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

    Project mention: Getting Started with React Cosmos | | 2021-08-23

    There are many ways to test component UIs and some testing frameworks help us achieve that, to mention but a few react-testing-library, where we write tests to check what a component has, for example, if we are testing a form component, we will write tests to check it a button is rendered, if there are input and/or select tags, etc and we usually see the results in our terminals but with React cosmos, we have a visual way to test our components (Visual TDD) which makes testing easier.

  • GitHub repo jasmine

    Simple JavaScript testing framework for browsers and node.js

    Project mention: Automated Cross Browser Testing With Jasmine Framework & Selenium | | 2022-01-17

    Step 1 : Download the latest version of Jasmine from the official website.

  • OPS

    OPS - Build and Run Open Source Unikernels. Quickly and easily build and deploy open source unikernels in tens of seconds. Deploy in any language to any cloud.

  • GitHub repo javascript-testing-best-practices

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

    Project mention: Bonnes pratiques des test Javascript et Node.js | | 2022-01-16
  • GitHub repo volkswagen

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

    Project mention: If (fps < 30): fps = 30 | | 2021-12-20

    Or literally this:

  • GitHub repo nightwatch

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

    Project mention: Possible alternatives to Front End Web Development | | 2021-12-06

    If the company uses something like Cypress or Nightwatch, then you'll need to write tests in Javascript, and often will deal with APIs / patterns (e.g. CSS selectors) that appear in traditional frontend work.

  • GitHub repo Detox

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

    Project mention: Integration testing Native UI Components; | | 2021-12-17

    Whilst developing a RN UI component for Video playback by work I couldn't find a nice way to write integration tests that would test the bridging between my JS and native layers. Jest tests only verify JS code and mocks the native side (by design), but I wanted to write a test that verified my component in its entirety (JS all the way to the native layers). Sure I could have written an E2E test in Detox to drive through some UI and verified the JSNative integration indirectly by displaying some text on the screen and checking for it, but it didn't feel quite right? (especially since this Video component has a bunch of callbacks and state that I wanted to verify). I wanted to do something similar to instrumented tests on Android where you can write unit and integration tests at a lower level and run them on a device or emulator. So I actually wrote a small utility in React‍ and TypeScript that allows me to write low level integration/unit tests for a native UI component (or module). The test then gets executed as part of our E2E Detox test run 🎉. If this concept is of interest I could publish some code and a write a more detailed article, so let me know 🙏. Also, if there's an existing way to write integration tests for native UI components or modules that can test the JS and Native layers together, please let me know 👍.

  • GitHub repo tape

    tap-producing test harness for node and browsers

    Project mention: Tools for testing Functional Web Apps | | 2021-12-20

    For us at Begin and Architect, tape has been in use for several years. tape has a stable and straightforward API, routine maintenance updates, and outputs TAP, making it really versatile. While TAP is legible, it's not the most human-readable format. Fortunately, several TAP reporters can help display results for developers. Until recently, Begin's TAP reporter of choice was tap-spec. Sadly tap-spec wasn't kept up to date and npm began reporting vulnerabilities.

  • GitHub repo web-skills

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

    Project mention: Web Skills – This is a nice chart of web dev skills. Could be a reminder of how far you've come, or a glimpse of how much there is to learn. Web development is hard. | | 2021-10-10

    I recommend reading the Readme for the project as others have mentioned, as it isn't the intention of the author to deter beginner programmers.

  • GitHub repo nyc

    the Istanbul command line interface

    Project mention: Production Ready React | | 2022-01-18

    Jest uses a package called Istanbul to provide test coverage metrics such as statement, branch, function, and line coverage so that you can understand and enforce the quality of your test suite, providing more confidence in releases.

  • GitHub repo axe-core

    Accessibility engine for automated Web UI testing

    Project mention: Hello, I inherited a site and got put in charge of ensuring ADA WCAG compliance, could use help with tooling | | 2022-01-04

    I'd recommend the axe-core library. It's "just JavaScript" which means you can run it fully in your control and automate it however you want, no fees, no services, no internet needed!

  • GitHub repo qunit

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

    Project mention: 🚀10 Trending projects on GitHub for web developers - 15th October 2021 | | 2021-10-15

    Tests are located in the test/ folder. Load test/test.html in your browser of choice with any HTTP server you like (I use http-server). Tests are written in QUnit and are…

  • GitHub repo dredd

    Language-agnostic HTTP API Testing Tool

    Project mention: Dealing with backend developers | | 2022-01-21

    One more tip for the backend developers: make sure the API implementation is tested against the API specification using contract-testing tools such as Dredd or Schemathesis. I specially recommend schemathesis as it's a lot more comprehensive. I recommend you run those tests in the CI and require them to pass before they can merge their API changes. This is the only reliable way to ensure the API works as expected.

  • GitHub repo CodeceptJS

    Supercharged End 2 End Testing Framework for NodeJS

    Project mention: TCMs and exploring Testomatio | | 2021-12-23

    This is where comes in. I discovered this TCM whilst working with and part of their Slack group. Testomatio is built by the team behind codeceptjs, bringing in vast experience in test automation behind the scenes.

  • GitHub repo pa11y

    Pa11y is your automated accessibility testing pal

    Project mention: A11y Testing: Automating ScreenReaders | | 2021-12-30

    There are lots of toolkits out there for ensuring the inclusivity and accessibility of our sites: with the likes axe-core and htmlcs for static analysis, and pa11y, koa11y, and cypress-audit (there are more) for helping us to explore or automate static analysis checks into our CI pipelines. 🚀🚀

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

    :owl: Custom jest matchers to test the state of the DOM

    Project mention: Build your own component library with Svelte | | 2021-11-09

    We will also use an additional plugin with Testing Library called user-event, which allows us to mimic user events, like typing inside an input or clicking on a button. We will also use a plugin called jest-dom, which extends the DOM-related matching capabilities of Jest, which we require because we are dealing with web components.

  • GitHub repo jest-image-snapshot

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

    Project mention: React-pdf testing | | 2021-12-26

    A combination of and whichever of renders your PDF the best should work.

  • GitHub repo power-assert

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

    Project mention: [AskJS] Can i read an object's value expression without evaluating it? | | 2022-01-05

    I recently stumbled upon power-assert library that deparses a false value and throws an exception with an explanation how it was evaluated (tutorial & playground included). I don't really understand how it works but perhaps one of its dependencies/components could do something similar to what you want.

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 2022-01-21.

JavaScript Testing related posts


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

Project Stars
1 nodebestpractices 73,965
2 Cypress 36,062
3 mocha 21,076
4 Enzyme 19,799
5 ava 19,547
6 react-testing-library 15,790
7 jasmine 15,279
8 javascript-testing-best-practices 14,222
9 volkswagen 12,209
10 nightwatch 10,934
11 Detox 9,095
12 tape 5,567
13 web-skills 5,273
14 nyc 4,881
15 axe-core 4,331
16 qunit 3,932
17 dredd 3,786
18 CodeceptJS 3,606
19 pa11y 3,244
20 maildev 3,144
21 jest-dom 2,970
22 jest-image-snapshot 2,964
23 power-assert 2,709
Find remote jobs at our new job board There are 29 new remote jobs listed recently.
Are you hiring? Post a new remote job listing for free.
Less time debugging, more time building
Scout APM allows you to find and fix performance issues with no hassle. Now with error monitoring and external services monitoring, Scout is a developer's best friend when it comes to application development.