-
-
Notifications
You must be signed in to change notification settings - Fork 35.6k
More benchmarks for the node:test module.Β #55723
Copy link
Copy link
Open
Labels
benchmarkIssues and PRs related to the benchmark subsystem.Issues and PRs related to the benchmark subsystem.staletest_runnerIssues and PRs related to the test runner subsystem.Issues and PRs related to the test runner subsystem.
Metadata
Metadata
Assignees
Labels
benchmarkIssues and PRs related to the benchmark subsystem.Issues and PRs related to the benchmark subsystem.staletest_runnerIssues and PRs related to the test runner subsystem.Issues and PRs related to the test runner subsystem.
Type
Fields
Give feedbackNo fields configured for issues without a type.
The
benchmark/test_runnerfolder currently contains benchmarks foritanddescribefunctions. I suggest we expand these benchmarks to cover additional test runner features, including mocks, coverage, and various test modes.Here are the functions that (IMO) should be benchmarked:
Basic Testing
These tests should run with a custom reporter without any special logic to make the tests as accurate as possible.
testtest(test_runner: run single test file benchmarkΒ #56479)testwhen it's not running due toonlyskip: truet.skip()t.skip(...)todo: truet.todo()t.todo(...)Hooks
beforeEachafterEachbeforeafterReporters (#55757)
dotjunitspectaplcovMocking
mock.fn(benchmark: addtest_runner/mock-fnΒ #55771)mock.timersfor each API, and each sub-functionmock.moduleSnapshots
snapshot.setDefaultSnapshotSerializers(serializers)snapshot.setResolveSnapshotPath(fn)t.assert.snapshotCoverageUse
--expose-internalsto exclusively test the coverage part