Files
flipper/scripts/run-headless-tests.sh
John Knox 922019a8d0 Add script to run headless tests easily
Summary:
It's not obvious how to run the headless tests at the moment, and requires manual steps this adds a script to do it.
It still does not start an emulator or the sample app, but it's an improvement.

Reviewed By: passy

Differential Revision: D17155308

fbshipit-source-id: 846b87389823f422030470807aa4aabacce69179
2019-09-02 11:00:11 -07:00

14 lines
290 B
Bash
Executable File

#!/bin/bash
set -xeuo pipefail
if [ `adb devices | wc -l` -lt "3" ]
then
echo "No devices are connected. Make sure emulator is booted with flipper sample app running"
exit 1
fi
yarn build-headless --mac
unzip -u dist/Flipper-headless.zip -d /tmp
(cd headless-tests && yarn test)