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/command-line.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -130,9 +130,9 @@ Creates a report XML file that follows the JUnit XML format and contains informa
130
130
bashunit provides an option to run each test in a separate child process, allowing you to parallelize the test execution and potentially speed up the testing process. When running in parallel mode, the execution order of tests is randomized.
131
131
132
132
::: warning
133
-
Parallel mode is currently only supported on **macOS**and **Ubuntu**. On other
134
-
systems (like Alpine Linux or Windows) the option is automatically disabled due
135
-
to inconsistent results. In those environments consider using `--no-parallel`.
133
+
Parallel mode is supported on **macOS**, **Ubuntu**, and **Windows**. On other
134
+
systems (like Alpine Linux) the option is automatically disabled due to
135
+
inconsistent results. In those environments consider using `--no-parallel`.
Copy file name to clipboardExpand all lines: docs/test-doubles.md
+38-6Lines changed: 38 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,11 @@
2
2
3
3
When creating tests, you might need to override existing function to be able to write isolated tests from external behaviour. To accomplish this, you can use mocks. You can also check that a function was called with certain arguments or even a number of times with a spy.
4
4
5
+
Temporary files created by spies are isolated per test run, so they work reliably when executing tests in parallel.
6
+
7
+
Spies record their calls in temporary files scoped to each test run.
8
+
This avoids clashes between processes and allows spies to work reliably when tests execute in parallel using `BASHUNIT_PARALLEL_RUN`.
0 commit comments