SHORTLIST20
中文
Englishالعربية中文日本語한국어EspañolFrançaisहिन्दी
编程

JavaScript testing frameworks

Test runners, assertion and end-to-end testing tools for JavaScript, ranked by GitHub stars

更新于 · GitHub stars (stars)

为什么是这20个

Ranked by GitHub stars: how many developers bookmarked the project. Stars measure attention, not quality, so each row also shows forks, licence and the last push. Tools without a public repository have no star count and can't be ranked here.

这份清单有用吗?
  1. 1

    Playwright

    Node.js library to automate Chromium, Firefox and WebKit with a single API.

    101,082 stars 6,979 forkslast push 2026-11-26TypeScriptApache-2.0

    也在: #1 Node.js testing libraries

  2. 2

    mocha

    Simple, flexible, fun JavaScript test framework for node.js & the browser.

    22,907 stars 3,255 forkslast push 2026-11-25JavaScriptMIT

    也在: #3 Node.js testing libraries

  3. 3

    ava

    Futuristic JavaScript test runner

    20,823 stars 1,470 forkslast push 2026-11-25JavaScriptMIT

    也在: #4 Node.js testing libraries

  4. 4

    jasmine

    DOM-less simple JavaScript testing framework.

    15,809 stars 2,240 forkslast push 2026-11-07JavaScriptMIT

  5. 5

    nightwatch

    UI automated testing framework based on node.js and selenium webdriver.

    11,952 stars 1,395 forkslast push 2026-05-25JavaScriptMIT

    也在: #7 Node.js testing libraries

  6. 6

    karma

    Spectacular Test Runner for JavaScript.

    11,947 stars 1,703 forkslast push 2026-06-10JavaScriptMIT

  7. 7

    TestCafe

    Automated browser testing for the modern web development stack.

    9,888 stars 672 forkslast push 2026-11-25JavaScriptMIT

    也在: #8 Node.js testing libraries

  8. 8

    webdriverio

    Next-gen WebDriver test automation framework for Node.js.

    9,887 stars 2,722 forkslast push 2026-11-25TypeScriptMIT

    也在: #3 Angular testing tools#9 Node.js testing libraries

  9. 9

    Sinon.JS

    Test spies, stubs, and mocks for JavaScript.

    9,749 stars 818 forkslast push 2026-11-24JavaScriptNOASSERTION

    也在: #10 Node.js testing libraries

  10. 10

    chai

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

    8,263 stars 737 forkslast push 2026-11-23JavaScriptMIT

  11. 11

    intern

    A next-generation code testing stack for JavaScript.

    4,338 stars 301 forkslast push 2023-03-14TypeScriptNOASSERTION

    也在: #13 Node.js testing libraries

  12. 12

    taiko

    A Node.js library with a simple API to automate Chromium based browsers.

    3,671 stars 461 forkslast push 2026-11-11JavaScriptMIT

  13. 13

    slimerjs

    A PhantomJS-like tool running Gecko.

    2,992 stars 251 forkslast push 2023-03-09JavaScriptNOASSERTION

  14. 14

    proxyquire

    Stub nodejs's require.

    2,741 stars 102 forkslast push 2025-08-13JavaScriptMIT

  15. 15

    expect.js

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

    2,093 stars 205 forkslast push 2023-01-14JavaScript

  16. 16

    blanket

    A simple code coverage library for JavaScript. Designed to be easy to install and use, for both browser and nodejs.

    1,393 stars 164 forkslast push 2022-12-06JavaScriptNOASSERTION

  17. 17

    DalekJS

    Automated cross browser functional testing with JavaScript

    691 stars 62 forkslast push 2020-04-03JavaScriptMIT

  18. 18

    totoro

    A simple and stable cross-browser testing tool.

    563 stars 96 forkslast push 2022-02-12JavaScript

  19. 19

    Pocket Mocker

    In-browser visual network mocking tool, supports fetch/XHR interception.

    524 stars 28 forkslast push 2026-06-11TypeScriptMIT

  20. 20

    JSCover

    JSCover is a tool that measures code coverage for JavaScript programs.

    402 stars 84 forkslast push 2026-11-18JavaGPL-2.0

如何衡量

Every tool in the Testing Frameworks section(s) of the community list sorrycc/awesome-javascript on GitHub with a public repository, ranked by GitHub stars from the GitHub API; archived repositories are left out. Added by the daily list generator.

参考资料

  1. sorrycc/awesome-javascript: Testing Frameworks, GitHub community list (list text MIT; star counts from the GitHub API). Checked 2026-11-26 03:19 UTC.
  2. sorrycc/awesome-javascript (Testing Frameworks), GitHub community list, 34 tools with a public repository.