Skip to content

Running Automated Tests

Boris Vidolov edited this page May 29, 2014 · 11 revisions

Intro

The ADAL.iOS library has two sets of automated tests: 1.** Internal unit tests.** They test the internal logic and try not to rely of the presence of remote authority servers. The tests are built as part of the library. At the moment xCode supports running of logic tests only on the simulator. The only tests within these that actually attempt to reach to the server are the authority validation ones. There are 100+ of these tests and all of them run in less than 30 seconds. 2. End to End tests. These tests attempt to verify whole scenarios like obtaining a token against a real server, after validating the authority and ensuring that the cache and cookie state is appropriate. There are only a few of these tests and they are built as part of the sample project. These tests take a bit longer to run ~1 min.
Both of these tests run automatically on pull requests on Travis. If you submit a pull request, you can check the Travis status (an icon next to the latest checkin).

Running Unit Test

As mentioned before, the unit tests are built as part of the ADAL library. To run tests from Xcode:

  1. Open the ADAL project.
  2. Select ADALiOS as a target from the targets drop down
Clone this wiki locally