This repository contains iOS specific implementation of react-native-magic-script library
The unit tests for Magic Script Components for iOS use Quick and Nimble frameworks. All tests are stored in the RNMagicScriptTests target. You can run them either from Xcode or from a terminal.
- Run
pod install. - Open RNMagicScript.xcworkspace.
- Make sure the
RNMagicScriptHostApplicationscheme is selected. - Press Cmd+U to run tests.
- Run
pod install. - Type the following command to build and run tests:
xcodebuild \
-workspace RNMagicScript.xcworkspace \
-scheme RNMagicScriptHostApplication \
-sdk iphonesimulator \
-destination 'platform=iOS Simulator,name=iPhone Xʀ,OS=12.4' \
test | xcpretty --test --color
- Please note that the command above uses local configuration of iOS simulators. If you don't have such simulator installed, you may change it to other simulator. To see a list of locally installed simulators, you can use the following command:
instruments -s devices