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
Copy file name to clipboardExpand all lines: test/bench/custom/readme.md
+11-6Lines changed: 11 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -4,16 +4,21 @@ In this directory are tests for code paths not covered by our spec or granular (
4
4
5
5
## How to write your own
6
6
7
-
In `main.mjs`call the `.add` function and pass it an underscore concatenated descriptive title.
8
-
Try to fit the title into the format of: "subject area", "method or function" "test case that is being covered" (Ex. `objectid_isvalid_bestcase_false`).
9
-
Copy the title to the name of the function to assist with debugging and flamegraph capturing.
7
+
In `benchmarks.mjs` add a new test to an existing array or make a new array for a new subject area.
8
+
Try to fit the name of the function into the format of: "subject area", "method or function" "test case that is being covered" (Ex. `objectid_isvalid_bestcase_false`).
9
+
Make sure your test is added to the `benchmarks` export.
0 commit comments