TestRunner Module
Types
| Type | Description |
|
Type alias for process runner functions. |
|
|
Result of running a test process, with stdout and stderr kept separate. |
Functions and values
| Function or value |
Description
|
Full Usage:
buildFilterArgs testClasses
Parameters:
string list
Returns: string
|
Build the filter arguments string from a list of test class names.
|
Full Usage:
defaultTfm
Returns: string
|
Default target framework moniker — update when upgrading .NET SDK.
|
Full Usage:
discoverTestProjects repoRoot
Parameters:
string
Returns: string list
|
Discover test projects by scanning for .fsproj files with xunit references. Only scans tests/ directory to avoid .devenv/ symlink issues.
|
Full Usage:
findTestDll projectPath
Parameters:
string
Returns: string
|
Find the test DLL path for a given test project.
|
Full Usage:
normalizeExitCode exitCode
Parameters:
int
Returns: int
|
Normalize exit codes: xUnit v3 returns 8 when zero tests match — treat as success.
|
|
|
Full Usage:
runAllTestsWith runner projectDll
Parameters:
ProcessRunner
projectDll : string
Returns: TestResult
|
Run all tests in a project using the given process runner.
|
Full Usage:
runFilteredTests projectDll testClasses
Parameters:
string
testClasses : string list
Returns: TestResult
|
Run only tests in the specified classes. Uses multiple --filter-class flags (ORed by xUnit v3 MTP).
|
Full Usage:
runFilteredTestsWith runner projectDll testClasses
Parameters:
ProcessRunner
projectDll : string
testClasses : string list
Returns: TestResult
|
Run only tests in the specified classes using the given process runner.
|
TestPrune