Method WithAppDomain
- Namespace
- Xunit.Runners
- Assembly
- xunit.v3.runner.utility.netfx.dll
WithAppDomain(string, string?, bool, string?)
Creates an assembly runner that discovers and run tests in a separate app domain.
public static AssemblyRunner WithAppDomain(string assemblyFileName, string? configFileName = null, bool shadowCopy = true, string? shadowCopyFolder = null)
Parameters
assemblyFileNamestringThe test assembly.
configFileNamestringThe test assembly configuration file.
shadowCopyboolIf set to
true, runs tests in a shadow copied app domain, which allows tests to be discovered and run without locking assembly files on disk.shadowCopyFolderstringThe path on disk to use for shadow copying; if
null, a folder will be automatically (randomly) generated