June 2018
Beginner to intermediate
394 pages
9h 2m
English
We all like to automate the process of testing, gcloud allows us to use shell scripting to achieve this:
if gcloud firebase test android run --app packt-app.apk --test packt-test.apk --timeout 2m
then
echo "Test matrix for packt app successfully finished"
else
echo "Test matrix exited abnormally with non-zero exit code: " $?
fi
There are a few very important scripting exit codes for Test Lab:
| Exit code | Notes |
| 0 | All tests passed successfully. |
| 1 | A general failure occurred, such as filename not found, and so on. |
| 2 | Occurs when unknown commands are passed as an argument. |
| 10 |
One or more test cases did not pass. |
There are few more exit codes such as 15,18,19,20 addressing Firebase-related ...
Read now
Unlock full access