Skip to content

Commit

Permalink
Added new script to run all tests, removed top-level build.gradle bec…
Browse files Browse the repository at this point in the history
…ause of issues with AS

Change-Id: I52e0f400f7995d8f45e65320fc911aed70f601ab
  • Loading branch information
JoseAlcerreca committed Sep 14, 2015
1 parent 9d9557d commit f16ac90
Show file tree
Hide file tree
Showing 8 changed files with 33 additions and 314 deletions.
42 changes: 0 additions & 42 deletions build.gradle

This file was deleted.

Binary file removed gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
6 changes: 0 additions & 6 deletions gradle/wrapper/gradle-wrapper.properties

This file was deleted.

164 changes: 0 additions & 164 deletions gradlew

This file was deleted.

90 changes: 0 additions & 90 deletions gradlew.bat

This file was deleted.

12 changes: 12 additions & 0 deletions projects.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
ui/espresso/BasicSample
ui/espresso/CustomMatcherSample
ui/espresso/MultiWindowSample
ui/espresso/DataAdapterSample
ui/espresso/IntentsBasicSample
ui/espresso/IntentsAdvancedSample
ui/espresso/WebBasicSample
ui/uiautomator/BasicSample
runner/AndroidJunitRunnerSample
unit/BasicSample
unit/BasicUnitAndroidTest
integration/ServiceTestRuleSample
12 changes: 0 additions & 12 deletions settings.gradle

This file was deleted.

21 changes: 21 additions & 0 deletions test_all.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash

set -e # Exit immediately if a command exits with a non-zero status.

for p in $(cat projects.conf); do
echo
echo
echo Running unit and Android tests in $p
echo "====================================================================="

pushd $p > /dev/null # Silent pushd
./gradlew $@ test cAT | sed "s@^@$p @" # Prefix every line with directory
code=${PIPESTATUS[0]}
if [ "$code" -ne "0" ]; then
exit $code
fi
popd > /dev/null # Silent popd
done

echo
echo "ALL TESTS PASS"

0 comments on commit f16ac90

Please sign in to comment.