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: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@
5
5
Golden file testing is a technique where the expected output of a test is
6
6
7
7
- generated automatically from test
8
-
- stored in a separate file (the "golden file")
9
-
- verified to never change unless explicitly regerated
8
+
- stored in a separate file
9
+
- verified to never change unless explicitly re-created
10
10
11
11
During testing, the actual output is compared against the contents of the golden file. If the outputs match, the test passes; if not, the test fails. This approach is especially useful for testing complex outputs such as JSON, HTML, or other structured data, as it makes it easy to review and update expected outputs.
0 commit comments