Skip to content

Commit 8dfedab

Browse files
Enhance engine modes documentation with Reflection mode details (#3030)
1 parent c10308c commit 8dfedab

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/docs/execution/engine-modes.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ TUnit can run in two modes:
1111

1212
When publishing with Native AOT, the source generation mode provides additional performance benefits and full AOT compatibility.
1313

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+
1416
## Source Generation Mode (Default)
1517

1618
By default, TUnit always uses source generation for test discovery and execution:
@@ -36,6 +38,8 @@ Enable reflection mode by running:
3638
dotnet test -- --reflection
3739
```
3840

41+
Alternatively, setting the environment variable `TUNIT_EXECUTION_MODE` to `reflection` enables the reflection engine mode globally.
42+
3943
## Native AOT Support
4044

4145
When publishing with Native AOT, TUnit's source generation mode provides additional benefits:

0 commit comments

Comments
 (0)