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
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.
Run the tests from the CppUnitTests
target in Xcode to run the C++ Unit Tests on iOS.