Instruments Unity games with AltTester.
pip3 install git+https://github.com/bigfishgames-external/AltTester-Instrumenter.git
python3 -m altins --version
python3 -m altins --help
options:
-h, --help show this help message and exit
--version show program's version number and exit
--release RELEASE [required] The AltTester version to use.
--assets ASSETS [required] The Assets folder path.
--settings SETTINGS [required] The build settings file.
--manifest MANIFEST [required] The manifest file to modify.
--buildFile BUILDFILE [required] The build file to modify.
--buildMethod BUILDMETHOD [required] The build method to modify.
--inputSystem INPUTSYSTEM [required] Specify new or old.
--newt NEWTONSOFT [required] Add newtonsoft to the manifest.
python3 -m altins --release="2.0.2" --assets="Assets" --settings="ProjectSettings/EditorBuildSettings.asset" --manifest="Packages/manifest.json" --buildFile="Assets/Scripts/Editor/Build.cs" --buildMethod="BuildAndroid()" --inputSystem="old" --newt="True"
pip3 uninstall AltTester-Instrumenter
BFG uses Jenkins for Continuous Integration and Continuous Delivery.
The following is an example of running AltTester-Instrumenter before a game build.
pipeline {
parameters {
booleanParam name: 'Test_Instrument', description: 'For E2E Test Builds', defaultValue: false
}
stages {
stage('Android Build') {
steps {
script {
if (params.Test_Instrument) {
sh 'pip3 install git+https://github.com/bigfishgames-external/AltTester-Instrumenter.git'
sh 'python3 -m altins --release="2.0.2" --assets="Assets" --settings="ProjectSettings/EditorBuildSettings.asset" --manifest="Packages/manifest.json" --buildFile="Assets/Scripts/Editor/Build.cs" --buildMethod="BuildAndroid()" --inputSystem="old" --newt="True"'
}
sh '$UNITY_EXEC -buildTarget Android -executeMethod Build.BuildAndroid $UNITY_PARAMS'
}
}
}
}
}