Skip to content

Testing

Chuck Ries edited this page Jul 15, 2015 · 15 revisions

MIEngine Testing

MIEngine includes a suite of automated tests that can be run against an Android emulator or device. The tests can be found in test\Android.

Running Glass Tests

To run all tests against an android emulator:

  1. Make sure the project has been built, either using build.cmd or building from within Visual Studio.
  2. Start an Android emulator using the Visual Studio Emulator for Android application that comes with Visual Studio.
  3. From an administrator Visual Studio Developer Command Prompt, cd to the test\Android\ directory.
  4. Starting the tests requires the device ID of the emulator. Running androidtest.cmd with no arguments will use adb.exe to list connected android devices:
c:\MIEngine\test\Android>androidtest.cmd
--- MIEngine Android Test Script ---
Usage: androidtest.cmd /DeviceId <id> /Platform <platform> [/SdkRoot <path>] [/NdkRoot <path>] [/v] [<test 1> [<test 2> [...]]]

List of devices attached
169.254.138.177:5555   device product:VS Emulator 7" KitKat (4.4) XHDPI Tablet model:7__KitKat__4_4__XHDPI_Tablet device:donatello
  1. Run the androidtest.cmd script using the appropriate device ID and platform:
c:\MIEngine\test\Android>androidtest.cmd /DeviceId 169.254.138.177:5555 /Platform x86

Clone this wiki locally