Open AlexanderPan opened 3 years ago
@AlexanderPan We use Bazel variant which uses test-plan-path
instead of xctestrun-path
and v5.8.0 works fine. Let me try the Xcode version using xctestrun-path
and get back to you. Meanwhile, can you examine the contents of file referred by bp/src/SimulatorHelper.m#L157 and why the NSDictionary
is coming out to be (null)
for you?
@AlexanderPan would you be able to share a redacted version of this file:
"./output/Build/Products/xxx_iphonesimulator14.4-x86_64.xctestrun" ?
@chenxiao0228
xcodebuild build-for-testing \
-enableCodeCoverage YES \
-workspace xxx.xcworkspace \
-scheme xxxUITests \
-destination "platform=iOS Simulator,name=iPhone 12 Pro Max" \
-configuration Tests \
-derivedDataPath 'output/' \
| xcpretty
@ravimandala
https://github.com/linkedin/bluepill/blob/master/bp/src/BPXCTestFile.m#L171
My .xctestrun file DependentProductPaths contains apple watch extension. At TESTROOT/Tests-iphonesimulator/AppleWatchBarImg not found Info.plist.
When I remove DependentProductPaths apple watch extension path. It work.
Wrong path : TESTROOT/Tests-iphonesimulator/AppleWatchBarImg Correct path: TESTROOT/Tests-watchsimulator/AppleWatchBarImg.app
@ravimandala i am building my app using the following command:
bazelisk build --config=Debug /MyApp
What is the value I need to use for test-plan-path
I am able to generate .xctestrun
for xctestrun-path
but I am not sure what the value is for the key test-plan-path
bluepill version: 5.8.0 xcode version: 12.4
run bluepill -c config.json