Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 791 Bytes

ios-tests.md

File metadata and controls

27 lines (17 loc) · 791 Bytes

iOS Tests

iOS Unit Tests

To run the iOS unit tests via XCTest, run tests for the ios_test target in Xcode or use the following bazel command:

bazel test //platform/ios/test:ios_test --test_output=errors --//:renderer=metal

Render Tests

To run the render tests, run the RenderTest target from iOS.

When running in a simulator, use

# check for 'DataContainer' of the app with `*.maplibre.RenderTestApp` id
xcrun simctl listapps booted

to get the data directory of the render test app. This allows you to inspect test results. When adding new tests, the generated expectations and actual.png file can be copied into the source directory from here.

C++ Unit Tests

Run the tests from the CppUnitTests target in Xcode to run the C++ Unit Tests on iOS.