This PowerShell script executes the Test Runner for a Farming Simulator 22 mod.
- PowerShell 3.0 or later
- Giants TestRunner Tool Download Here
- Giants Editor Download Here
- Farming Simulator Buy it here
-
Download Script:
- Download the
execute_TestRunner.ps1
file to your computer.
- Download the
-
Prerequisites:
- Ensure you have PowerShell 3.0 or later installed on your system.
-
Setup:
- Define the following paths in the script:
$testRunnerPath
: Path where the Test Runner executable (TestRunner_public.exe
) is installed.$gamePath
: Path where Farming Simulator 22 is installed.$outputBasePath
: Base output folder where the results will be stored.$giantsEditorPath
: Path where Giants Editor is Installed
- Define the following paths in the script:
-
Run the Script:
-
Open PowerShell.
-
Navigate to the directory where
execute_TestRunner.ps1
is located. -
Run the script by providing the path to the mod folder as an argument:
.\execute_TestRunner.ps1 -modFolderPath "Path\to\mod\folder"
or
.\execute_TestRunner.ps1 "Path\to\mod\folder"
Replace
"Path\to\mod\folder"
with the actual path to your mod folder. -
-
Output:
- The script will create a new folder inside the
$outputBasePath
with the name of the mod folder followed by "_Output" (or "_Output_X" if conflicts arise). - The Test Runner will generate its output in this folder.
- The script will create a new folder inside the
- This script uses PowerShell to execute the Test Runner command with the specified parameters.
- Ensure that the paths to
TestRunner_public.exe
, the game folder, and the output base folder are correctly defined in the script. - Exercise caution when running scripts from untrusted sources.
- For issues or suggestions, please contact Miguel Pacheco or create an issue on the Repository.