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/docs/execution/engine-modes.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,8 @@ TUnit can run in two modes:
11
11
12
12
When publishing with Native AOT, the source generation mode provides additional performance benefits and full AOT compatibility.
13
13
14
+
The Reflection mode allows discovery of test cases that have been source generated by something other than TUnit, though, for example .razor files in bUnit.
15
+
14
16
## Source Generation Mode (Default)
15
17
16
18
By default, TUnit always uses source generation for test discovery and execution:
@@ -36,6 +38,8 @@ Enable reflection mode by running:
36
38
dotnet test -- --reflection
37
39
```
38
40
41
+
Alternatively, setting the environment variable `TUNIT_EXECUTION_MODE` to `reflection` enables the reflection engine mode globally.
42
+
39
43
## Native AOT Support
40
44
41
45
When publishing with Native AOT, TUnit's source generation mode provides additional benefits:
0 commit comments