Is there a way to run unit tests only?
Currently, run_test(https://docs.fastlane.tools/actions/run_tests/) will trigger both UI and unit test
Is there a way to run unit tests only?
Currently, run_test(https://docs.fastlane.tools/actions/run_tests/) will trigger both UI and unit test
Do you have a separate XCode scheme for UI and Unit tests? If it's so, you can specify a scheme to run which contains only UI/Unit tests:
run_tests(
workspace: "App.xcworkspace",
scheme: "MyAppUITests"
)
I can make it with UI testing schema. However, I still fails on unit test scheme. i can see this kind of error in fastlane
lane :testsunit do
run_tests(
scheme: "XXX_Dev_UnitTests",
# devices: ["iPhone 7", "iPhone 12"],
)
end
The scheme 'XXXX_Dev_UnitTests' has nothing configured to build for Running and has no executable specified to Run. Edit the scheme to configure the Run action. [10:04:50]: Exit status: 70