ente/mobile/scripts/app_init_perf_test.sh

24 lines
749 B
Bash
Raw Normal View History

2024-04-08 07:51:29 +00:00
#!/bin/bash
2024-04-08 08:00:52 +00:00
# Make sure to go through app_init_test.dart and
2024-04-08 07:51:29 +00:00
# fill in email and password.
# Specify destination directory for the perf results in perf_driver.dart.
2024-04-08 08:00:52 +00:00
# Specify the report_key of the test in perf_driver.dart. `report_key`` of
# `traceAction`` in app_init_test.dart.
2024-04-08 07:51:29 +00:00
2024-04-08 08:00:52 +00:00
# On first run, app will start from login page. from second run onwards,
# app will start from home page. --keep-app-running is for starting the
# app from home page instead of logging in on every run.
2024-04-08 07:51:29 +00:00
export ENDPOINT="https://api.ente.io"
flutter drive \
--driver=test_driver/perf_driver.dart \
--target=integration_test/app_init_test.dart \
--dart-define=endpoint=$ENDPOINT \
--profile --flavor independent \
--no-dds \
--keep-app-running
exit $?