Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/docs/execution/engine-modes.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ TUnit can run in two modes:

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

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.

## Source Generation Mode (Default)

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

Alternatively, setting the environment variable `TUNIT_EXECUTION_MODE` to `reflection` enables the reflection engine mode globally.

## Native AOT Support

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