Clean Up for UI Automated Testing
continuous-integration/drone/pr Build was killed
Details
continuous-integration/drone/pr Build was killed
Details
This commit is contained in:
parent
154d1f1cfc
commit
5232e13d95
|
@ -66,13 +66,10 @@ steps:
|
||||||
- name: deps
|
- name: deps
|
||||||
path: /root/.pub-cache
|
path: /root/.pub-cache
|
||||||
commands:
|
commands:
|
||||||
# - flutter config --enable-linux-desktop
|
- # todo: add xvfb to openpriv/flutter-desktop:linux-fstable-3.7
|
||||||
- sudo apt update
|
- sudo apt update
|
||||||
- sudo apt-get install -y xvfb
|
- sudo apt-get install -y xvfb
|
||||||
- ./fetch-tor.sh
|
- ./fetch-tor.sh
|
||||||
- export PATH=$PATH:$PWD/linux/Tor
|
|
||||||
- export LD_LIBRARY_PATH="$PWD/linux/Tor/"
|
|
||||||
- tor --version
|
|
||||||
- ./run-tests-headless.sh 02_save_load
|
- ./run-tests-headless.sh 02_save_load
|
||||||
|
|
||||||
- name: test-build-android
|
- name: test-build-android
|
||||||
|
|
|
@ -43,7 +43,6 @@ Future<void> main() async {
|
||||||
LicenseRegistry.addLicense(() => licenses());
|
LicenseRegistry.addLicense(() => licenses());
|
||||||
WidgetsFlutterBinding.ensureInitialized();
|
WidgetsFlutterBinding.ensureInitialized();
|
||||||
print("runApp()");
|
print("runApp()");
|
||||||
print("Testing");
|
|
||||||
return runApp(Flwtch());
|
return runApp(Flwtch());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -66,7 +65,7 @@ class FlwtchState extends State<Flwtch> with WindowListener {
|
||||||
|
|
||||||
Future<dynamic> shutdownDirect(MethodCall call) async {
|
Future<dynamic> shutdownDirect(MethodCall call) async {
|
||||||
print(call);
|
print(call);
|
||||||
await cwtch.Shutdown().timeout(Duration(seconds: 1));
|
cwtch.Shutdown();
|
||||||
return Future.value({});
|
return Future.value({});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -196,9 +195,8 @@ class FlwtchState extends State<Flwtch> with WindowListener {
|
||||||
Future<void> shutdown() async {
|
Future<void> shutdown() async {
|
||||||
globalAppState.SetModalState(ModalState.shutdown);
|
globalAppState.SetModalState(ModalState.shutdown);
|
||||||
print("shutting down");
|
print("shutting down");
|
||||||
await cwtch.Shutdown().timeout(Duration(seconds: 1));
|
await cwtch.Shutdown();
|
||||||
// Wait a few seconds as shutting down things takes a little time..
|
// Wait a few seconds as shutting down things takes a little time..
|
||||||
print("done");
|
|
||||||
{
|
{
|
||||||
if (Platform.isAndroid) {
|
if (Platform.isAndroid) {
|
||||||
SystemNavigator.pop();
|
SystemNavigator.pop();
|
||||||
|
@ -272,9 +270,7 @@ class FlwtchState extends State<Flwtch> with WindowListener {
|
||||||
@override
|
@override
|
||||||
void dispose() {
|
void dispose() {
|
||||||
globalAppState.SetModalState(ModalState.shutdown);
|
globalAppState.SetModalState(ModalState.shutdown);
|
||||||
cwtch.Shutdown().timeout(Duration(seconds: 1), onTimeout: () {
|
cwtch.Shutdown();
|
||||||
|
|
||||||
});
|
|
||||||
windowManager.removeListener(this);
|
windowManager.removeListener(this);
|
||||||
cwtch.dispose();
|
cwtch.dispose();
|
||||||
super.dispose();
|
super.dispose();
|
||||||
|
|
|
@ -5,8 +5,9 @@ sed "s|featurePaths: REPLACED_BY_SCRIPT|featurePaths: <String>[$paths]|" integra
|
||||||
flutter pub run build_runner clean
|
flutter pub run build_runner clean
|
||||||
flutter pub run build_runner build --delete-conflicting-outputs
|
flutter pub run build_runner build --delete-conflicting-outputs
|
||||||
|
|
||||||
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"./linux/"
|
PATH=$PATH:$PWD/linux/Tor
|
||||||
LD_LIBRARY_PATH=$LD_LIBRARY_PATH LOG_FILE=/home/sarah/PARA/projects/cwtch/cwtch.log CWTCH_HOME=$PWD/integration_test/env/temp/ flutter test -d linux --dart-define TEST_MODE=true integration_test/gherkin_suite_test.dart
|
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"$PWD/linux/":"$PWD/linux/Tor/"
|
||||||
|
LOG_FILE=/home/sarah/PARA/projects/cwtch/cwtch.log CWTCH_HOME=$PWD/integration_test/env/temp/ flutter test -d linux --dart-define TEST_MODE=true integration_test/gherkin_suite_test.dart
|
||||||
#node index2.js
|
#node index2.js
|
||||||
#if [ "$HEADLESS" = "false" ]; then
|
#if [ "$HEADLESS" = "false" ]; then
|
||||||
# xdg-open integration_test/gherkin/reports/cucumber_report.html
|
# xdg-open integration_test/gherkin/reports/cucumber_report.html
|
||||||
|
|
Loading…
Reference in New Issue