EarlGrey tests are run differently than other test targets, as there is an XCTest bundle that is injected into the target application. Therefore you must
also pass in the test bundle:
$ out/Debug-iphonesimulator/iossim \
out/Debug-iphonesimulator/ios_chrome_ui_egtests.app \
out/Debug-iphonesimulator/ios_chrome_ui_egtests.app/PlugIns/ios_chrome_ui_egtests_module.xctest
That works fine for the simulator.
I tried to create the xml file manually and to run the following xcodebuild command to run the test on my iPhone instead:
xcodebuild -xctestrun /Volumes/samsung/test-device.xml \
-destination 'platform=iOS,id=32f2df369e9f8145ccc70791f5d1932f8a82f80e' \
test-without-building
Here is my test-device.xml:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>TestTargetName</key>
<dict>
<key>TestBundlePath</key>
<string>/Volumes/samsung/git/src/out/Release-iphoneos/ios_chrome_ui_egtests.app/PlugIns/ios_chrome_ui_egtests_module.xctest</string>
<key>TestHostPath</key>
<string>/Volumes/samsung/git/src/out/Release-iphoneos/ios_chrome_ui_egtests.app</string>
<key>TestingEnvironmentVariables</key>
<dict>
<key>DYLD_FRAMEWORK_PATH</key>
<string>__PLATFORMS__/iPhoneOS.platform/Developer/Library/Frameworks</string>
<key>DYLD_INSERT_LIBRARIES</key>
<string>__PLATFORMS__/iPhoneOS.platform/Developer/Library/PrivateFrameworks/IDEBundleInjection.framework/IDEBundleInjection</string>
<key>DYLD_LIBRARY_PATH</key>
<string>__PLATFORMS__/iPhoneOS.platform/Developer/Library</string>
<key>IDEiPhoneInternalTestBundleName</key>
<string>ios_chrome_ui_egtests.app</string>
</dict>
</dict>
</dict>
</plist>
When I run the command above I get the message:
User defaults from command line:
IDETestRunSpecificationPath = /Volumes/samsung/test-device.xml
xcodebuild: error: Failed to build workspace temporary with scheme Transient Testing.
Reason: Logic Testing Unavailable
I was searching on the web for this error, did not find anything useful.
I have sent the same question to the earlgrey developers group, was told that earlgrey should run on device, so probably I am doing somaething incorrectly.
Will greatly appreciate, if you tell me, how to run Chromium earlgrey tests on device.
My environment is Mac os 10.12, xcode 9.1, Chromium 62
Many thanks and have a wonderful day!
Igor.
--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev+unsubscribe@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/a57e432e-45bb-4e45-bd12-62bb23f6ba9f%40chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/CAOTgsh7vk5WRt_X_X8BNTScsrHhNGLiVPiJTjUzK5Qt1%3D-EC%2BQ%40mail.gmail.com.
--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/a57e432e-45bb-4e45-bd12-62bb23f6ba9f%40chromium.org.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev+unsubscribe@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/CAEhBV%3Ds%3DbmsuuyNc2ObjpuF3n%2BdTKVjoqx_CTvOnn-WNz1Hq-Q%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.