Ir para o conteúdo

Testes

Ferramentas para testar seu código

Proporções de ferramentas de teste ao longo do tempo

It's rare to see a trend as clear as Vitest's ascencion through the ranks over the past few years. While it may "only" be number four in terms of usage, it already tops the interest, retention, and overall positivity rankings – and shows no sign of conceding the top spot anytime soon.

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

Modo:

Visualização:

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%
5%
11%
16%
22%
27%
1

77
2

59
3

50
4

44
5

34
6

23
7

17
8

11
9

11
10

9
11

Outras respostas

101
0%
5%
11%
16%
22%
27%
% de respostas das questões

Used at Work

Vitest displays the classic signs of a technology at the start of its lifespan: high retention and interest, but low adoption in large companies – for now.

0%
12%
25%
37%
50%
62%
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

🚫 None

1,522
0%
12%
25%
37%
50%
62%
% de respostas das questões
Which of these tools do you use in a professional context?
We asked members of the JavaScript community to share their “pick of the year”

My 2024 Pick: 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.
We asked members of the JavaScript community to share their “pick of the year”

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).

Visualização:

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%
% de respostas da pesquisa

Satisfação com ferramentas de teste

0
1
2
3
4
2016
2017
2018
2019
2020
2021
2022
2023
2024
0
1
2
3
4
Média
Em uma escala de 0 (muito insatisfeito) a 4 (muito satisfeito), qual é o seu nível de satisfação com o estado atual das ferramentas de teste?

Pontos problemáticos das ferramentas de teste

Mocking is the biggest pain point presented by testing, closely followed by the hassle of complex setups and configurations, and the burden of slow-running tests.

0%
16%
31%
47%
63%
78%
1

Mocking

2

Configuration

3

Performance

4

5

ESM & CJS

6

Excessive complexity

7

Flakiness

8

browser_testing_issues

9

E2E testing

10

Lack of documentation

0%
16%
31%
47%
63%
78%
% de respostas das questões
Quais pontos problemáticos você encontrou ao usar ferramentas de teste?
Respostas livres

Recursos recomendados

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.
Obrigado aos nossos parceiros por nos apoiarem! Saiba mais.