diff options
author | gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2012-08-06 19:30:10 +0000 |
---|---|---|
committer | gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2012-08-06 19:30:10 +0000 |
commit | 2eb12c981ac9880536ebb13249f01fd7a226548e (patch) | |
tree | c68e6b05994982300c4cb3059621c2f57029b484 /UnitTesting/ReadMe_iossim.txt | |
parent | 9575015d2290df04108b308431a6033b1fc4bfae (diff) |
[Author: thomasvl]
Take 2: Overhaul how iOS unittests are run.
Newer versions of Xcode have changes in the Simulator and supporting
frameworks so the way GTM had been running unittests no longer works.
The Simulator frameworks bail on launch with a zero exit code, so unless
you look at the raw output, you don't even notice the tests no longer
run.
This new way comes from the work done in Chromium to actually launch the
unittests fully under the simulator to get them a much more realistic
environment. It also takes what was learned there about getting the output
of the binary and how to deal with all the different ways a test and the
simulator can fail to start along with all the different ways the failures/
crashing of the app can come back.
There are some new env variables that let you force a version of the
simulator (assuming it is installed) along with one to say if you want to
run under iPhone or iPad.
- Land a copy of the Chromium iossim util.
- Land RuniOSUnitTestsUnderSimulator that uses iossim, projects have to be
moved over to use it.
R=dmaclach
DELTA=227 (227 added, 0 deleted, 0 changed)
Diffstat (limited to 'UnitTesting/ReadMe_iossim.txt')
-rw-r--r-- | UnitTesting/ReadMe_iossim.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/UnitTesting/ReadMe_iossim.txt b/UnitTesting/ReadMe_iossim.txt new file mode 100644 index 0000000..48d34ab --- /dev/null +++ b/UnitTesting/ReadMe_iossim.txt @@ -0,0 +1,8 @@ +The iossim binary here is a build of a tool found in the Chromium project: + + http://src.chromium.org/viewvc/chrome/trunk/src/testing/iossim/iossim.mm?view=markup + +It is used to run the unittests for iOS. The old way that directly ran the +executables with some environment variables set no longer works, so this +provides a way that more closely imitates how Xcode itself invokes the +Simulator. |