See the instructions for how to check out and build Chromium for iOS.
Automated testing is a crucial part of ensuring the quality of Chromium.
Unit testing is done via gtests. To run a unit test, simply run the test target (ending in _unittest).
EarlGrey is the integration testing framework used by Chromium for iOS.
EarlGrey tests are based on Apple's XCUITest.
An entire suite of tests can be run from Xcode.
A subset of tests can be run by selecting the test or test case from the XCTest navigator on the left side of the screen.
When running from the command-line, it is required to pass in the *.xctest target, in addition to the test application. Example:
./out/Debug-iphonesimulator/iossim -d "iPad Retina" -s 8.1 \ out/Debug-iphonesimulator/ios_chrome_integration_egtests.app \ out/Debug-iphonesimulator/ios_chrome_integration_egtests_module.xctest