Files
Detox/detox/test/repeat_suite.sh
Leo NatanandRotem Mizrachi-Meidan 2cfab77d36 iOS: Synchronization over waitForBackground and waitForActive states (#1036)
* Synchronize performSelector: API for the RN thread

* Add support for new sync points

* Send “ready” in sync manner

* Added waitForActive and waitForBackground to protocol

* Add external logger capability, so that the test project can log into the same logger as Detox

Useful for debugging

* Add test to ensure app transitions are synchronized

* Add repeat_suite convenience script

* Update AppDelegate.m

* Disable verifty-artifacts step for now

#1038

* Run transitions test only on iOS

* Retrigger build
2018-11-15 00:48:09 +02:00

22 lines
588 B
Bash
Executable File

#!/bin/bash
echo "Building Detox.framework"
detox clean-framework-cache && detox build-framework-cache &> /dev/null
echo "Building suite"
detox build -c ios.sim.release &> /dev/null
echo "Running tests"
while [ 1 -lt 4 ]
do
START_DATE=$(date +'%Y-%m-%d %H:%M:%S')
sleep 1s
detox test -c ios.sim.release
RV=${?}
sleep 1s
END_DATE=$(date +'%Y-%m-%d %H:%M:%S')
xcrun simctl spawn booted log show --style syslog --predicate 'subsystem contains "com.wix.Detox"' --start "${START_DATE}" --end "${END_DATE}" > device.log
if [ "$RV" -ne "0" ] ; then
echo "FAILED!"
exit -1
fi
done