You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I am doing a presentation on unit tests and why they are important, and I would like to know if someone who is involved in the development of node.js knows the exact or an approximate number of unit tests in the node.js repository. After searching I figure out there are a lot of type of tests and variations and also languages used in node.js repository but it is not easy to figure out how many exist. At least for someone who is not involved in the development.
I am not interested only on the ECMAScript unit tests number inside the repository. I am interested in all languages used. Also I am not interested in a specific platform. As for version the latest available. If someone could provide a number for each language it would be also be very helpful. Thanks a lot.
Minimal Reproduction
No response
Output
No response
Before You Submit
I have looked for issues that already exist before submitting this
Will that print something like: "X tests scenarios were successfully executed" (X an arbitrary natural number) or I will be here asking for further help? Maybe it is possible to see that in the pipelines?
Activity
avivkeller commentedon Oct 30, 2025
Just count the files in the test directory
Ghostblad3 commentedon Oct 30, 2025
Hello, I am referring to test scenarios. Not files.
ljharb commentedon Oct 30, 2025
What about a "test scenario" is precisely defined enough that it's a useful metric?
avivkeller commentedon Oct 30, 2025
Each file can be considered a "scenario", or, if you want each part of each file, run
make testand see how many tests are ranGhostblad3 commentedon Nov 1, 2025
Will that print something like: "X tests scenarios were successfully executed" (X an arbitrary natural number) or I will be here asking for further help? Maybe it is possible to see that in the pipelines?
ljharb commentedon Nov 4, 2025
A file can contain multiple tests, or one. A test can contain multiple tests, or one. A folder can contain multiple tests, or one.
I'm not seeing any objective boundary here that's even remotely countable.