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: docs/test-files.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -85,12 +85,12 @@ function tear_down() {
85
85
The `set_up_before_script` auxiliary functionis called, if it is present in the test file, only once before all tests functions in the test file begin.
86
86
This is useful forglobal setup that applies to all test functionsin the script, such as loading shared resources.
87
87
88
-
During test execution, bashunit displays the hook execution with its duration:
88
+
During test execution, bashunit displays the hook execution with its duration, right-aligned to match test output:
89
89
90
90
```
91
91
Running tests/example_test.sh
92
-
Running set_up_before_script... done (2.03s)
93
-
✓ Passed: test_example
92
+
● set_up_before_script 2.03s
93
+
✓ Passed: test_example 12ms
94
94
```
95
95
96
96
This visibility helps identify slow setup operations that may impact test run time.
@@ -114,8 +114,8 @@ It provides a hook for any cleanup that should occur after all tests have run, s
114
114
Like `set_up_before_script`, the execution is displayed with its duration:
0 commit comments