From 25ddea40d096a1edc7ddf4fdc6e12017dcfea2b1 Mon Sep 17 00:00:00 2001 From: Steven Weerdenburg Date: Thu, 26 Mar 2026 15:06:47 -0400 Subject: [PATCH] Add --mainthread option to NUnitLite documentation --- docs/articles/nunit/running-tests/NUnitLite-Options.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/articles/nunit/running-tests/NUnitLite-Options.md b/docs/articles/nunit/running-tests/NUnitLite-Options.md index e3da6c51b..5cf2017fa 100644 --- a/docs/articles/nunit/running-tests/NUnitLite-Options.md +++ b/docs/articles/nunit/running-tests/NUnitLite-Options.md @@ -12,6 +12,7 @@ The NUnitLite runner is invoked by executing the test program. If desired, any o | `--timeout=MILLISECONDS` | Set timeout for each test case in MILLISECONDS. | | `--seed=SEED` | Set the random SEED used to generate test cases. | | `--workers=NUMBER` | Specify the NUMBER of worker threads to be used in running tests. If not specified, defaults to 2 or the number of processors, whichever is greater. | +| `--mainthread` | Causes tests to run in the main application thread. Will cause `--workers` to be ignored. (_NUnitLite 4.6+_) | | `--stoponerror` | Stop run immediately upon any test failure or error. | | `--wait` | Wait for input before closing console window. | | `--work=PATH` | PATH of the directory to use for output files. If not specified, defaults to the current directory. |