diff --git a/.run/Sanmill-monkey.run.xml b/.run/Sanmill-monkey.run.xml
deleted file mode 100644
index d3f4b9a2..00000000
--- a/.run/Sanmill-monkey.run.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.run/Sanmill-test.run.xml b/.run/Sanmill-test.run.xml
new file mode 100644
index 00000000..cb68bb97
--- /dev/null
+++ b/.run/Sanmill-test.run.xml
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.vscode/launch.json b/.vscode/launch.json
index 84ad841a..26542f2e 100644
--- a/.vscode/launch.json
+++ b/.vscode/launch.json
@@ -30,14 +30,14 @@
]
},
{
- "name": "Sanmill-monkey",
+ "name": "Sanmill-test",
"type": "dart",
"request": "launch",
"cwd": "src/ui/flutter_app",
"program": "lib/main.dart",
"args": [
"--dart-define",
- "monkey_test=true"
+ "test=true"
]
},
{
diff --git a/.vscode/settings.json b/.vscode/settings.json
index 6691202e..9e4fa0af 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -2,6 +2,7 @@
"cSpell.words": [
"ALIGNAS",
"appbundle",
+ "Appium",
"APSTUDIO",
"ARGB",
"autobuild",
diff --git a/Readme.md b/Readme.md
index 2c858671..836b59c2 100644
--- a/Readme.md
+++ b/Readme.md
@@ -73,7 +73,7 @@ Run `./flutter-init.sh` , copy `src/ui/flutter_app/android/key.properties.exampl
We use compile-time environment configs to enable specific parts of the code:
-* `monkey_test` to prepare the app for monkey tests. (References to external sites are going to be disabled.)
+* `test` to prepare the app for Monkey and Appium testing. (References to external sites are going to be disabled.)
* `dev_mode` to show the developer mode without needing to enable it first.
* `catcher` to control the use of catcher. (This is on by default and needs to be disabled when required.)
diff --git a/src/ui/flutter_app/lib/main.dart b/src/ui/flutter_app/lib/main.dart
index c6580de3..6da2ea09 100644
--- a/src/ui/flutter_app/lib/main.dart
+++ b/src/ui/flutter_app/lib/main.dart
@@ -43,7 +43,7 @@ part 'package:sanmill/services/init_system_ui.dart';
Future main() async {
debugPrint('Environment [catcher]: ${EnvironmentConfig.catcher}');
debugPrint('Environment [dev_mode]: ${EnvironmentConfig.devMode}');
- debugPrint('Environment [monkey_test]: ${EnvironmentConfig.monkeyTest}');
+ debugPrint('Environment [test]: ${EnvironmentConfig.test}');
await LocalDatabaseService.initStorage();
diff --git a/src/ui/flutter_app/lib/services/environment_config.dart b/src/ui/flutter_app/lib/services/environment_config.dart
index 6c56f4d7..38039196 100644
--- a/src/ui/flutter_app/lib/services/environment_config.dart
+++ b/src/ui/flutter_app/lib/services/environment_config.dart
@@ -22,13 +22,13 @@
class EnvironmentConfig {
const EnvironmentConfig._();
- /// gets weather we build for a monkey test
- static const monkeyTest = bool.fromEnvironment('monkey_test');
+ /// Gets whether we build for Monkey/Appium testing
+ static const test = bool.fromEnvironment('test');
- /// gets weather we build for devMode
+ /// Gets whether we build for devMode
static const devMode = bool.fromEnvironment('dev_mode');
- /// gets weather we want catcher to be enabled
+ /// Gets whether we want catcher to be enabled
/// defaults to true
static const catcher = bool.fromEnvironment('catcher', defaultValue: true);
}