When you execute automated tests of X++ code with SysTest, the test service (SysTestService class) gets called with some parameters, defined in SysTestRunnerSettings:
You could, for example, set granularity to execute just unit tests and skip integration tests, or produce a trace file for diagnostics.
You may want to use such parameters in automatic processes (e.g. running certain types of tests on gated builds) or directly in Visual Studio.
Visual Studio supports such configuration with .runsettings files (see Configure unit tests by using a .runsettings file). In Visual Studio, you can create a .runsettings file (which is a simple XML file), put it to your solution directory and it’ll be used automatically when running tests from Text Explorer. You can also select a particular file in Test > Configure Run Settings.
I wondered if the same approach can be used for SysTest parameters and it can indeed, you just need to put these parameters into SysTest element (and you must know the correct property names).
<?xml version="1.0" encoding="utf-8"?> <RunSettings> <SysTest> <RunInNewPartition>false</RunInNewPartition> <TraceFile>c:\temp\TestTrace.txt</TraceFile> </SysTest> </RunSettings>