跳到内容

测试工具

代码测试工具

测试工具随时间变化的比率

在过去几年中,Vitest 的排名上升趋势如此明显,实属罕见。虽然在使用率方面,它可能 “仅 ”排名第四,但在兴趣、留存率和整体积极性方面,它已经高居榜首,而且没有任何迹象表明它很快就会让出第一的位置。

Jest
Mocha
Storybook
Cypress
Puppeteer
Testing Library
Playwright
WebdriverIO
Vitest
Selenium
TestCafe
Mock Service Worker
Node Test Runner

模式:

视图:

0%
20%
40%
60%
80%
100%
2016
2017
2018
2019
2020
2021
2022
2023
2024
0%
20%
40%
60%
80%
100%

Other Testing Tools

0%
20%
40%
60%
80%
100%
1

77
2

59
3

50
4

44
5

34
6

23
7

17
8

11
9

11
10

9
11

其他答案

101
0%
20%
40%
60%
80%
100%
受访者百分比

Vitest 显示了技术生命周期初期的典型迹象:留存率高、兴趣浓厚,但目前在大公司中的采用率较低。

0%
20%
40%
60%
80%
100%
1

7,080
2

4,559
3

3,911
4

3,592
5

3,520
6

2,908
7

2,027
8

1,819
9

1,093
10

920
11

427
12

304
13

151
14

1,522
0%
20%
40%
60%
80%
100%
受访者百分比
Which of these tools do you use in a professional context?
我们询问了 JavaScript 社区的成员,分享他们的“年度选择”

我的 2024 选择: Shruti Kapoor

My Pick of the Year is my friend Shruti Kapoor. Shruti has a way of explaining even the trickiest technical JS concepts in very easy-to-understand way. In her fun and engaging YouTube videos and conference talks, she teaches her audience the most critical parts of JavaScript development without a lot of fluff.
我们询问了 JavaScript 社区的成员,分享他们的“年度选择”

Shaundai Person

Front end Senior Software Engineer (Netflix) and course instructor

Number of Items

How many items in this category respondends have used (or heard of).

视图:

0%
4%
8%
12%
17%
21%
1

0

2,911
2

1

1,260
3

2

1,398
4

3

1,470
5

4

1,443
6

5

1,360
7

6

1,278
8

7

1,092
9

8

757
10

9

516
11

10

341
12

11

131
13

12

46
14

13

12
0%
4%
8%
12%
17%
21%
调查对象百分比

测试满意度

0
1
2
3
4
2016
2017
2018
2019
2020
2021
2022
2023
2024
0
1
2
3
4
平均 {axis}
您对测试工具的现状满意吗?

测试工具的痛点

Mocking 是测试带来的最大痛点,其次是复杂设置和配置带来的麻烦,以及测试运行缓慢带来的负担。

0%
20%
40%
60%
80%
100%
1

Mocking

2

Configuration

3

Performance

4

5

ESM & CJS

6

Excessive complexity

7

Flakiness

8

9

E2E testing

10

Lack of documentation

0%
20%
40%
60%
80%
100%
受访者百分比
在使用测试工具时,您遇到过哪些痛点?
(自由提问)
Testing Fundamentals
Steve Kinney
Temporal

Testing Fundamentals

Learn the basics of testing and apply Test-Driven Development techniques to your workflow. Create automated tests for DOM elements and user interactions. Use mocks and spies to control your environment and test more complex code. Gain practical experience writing unit and integration tests while exploring common testing tools.
Web App Testing & Tools
Miško Hevery
Qwik Creator (Previously Angular)

Web App Testing & Tools

Dive into testing with Miško Hevery, covering unit and end-to-end testing, refactoring for testability, and using tools like Vitest and Playwright.
感谢合作伙伴对我们的支持! 了解更多。