Closed Husseinovich closed 3 years ago
For the screenshots not being created, can you paste the log from bluepill? You might have to run it in verbose mode to get more information. Your output dir looks a little weird... do you have permission to write in /Users/Testresults
?
We don't use fastlane, but I'm pretty sure there is a plugin for bluepill created by the community.
@ob Thanks for the follow up. Here is the updated config.json
{
"xctestrun-path": "bluepill/Build/Products/collate_errors_iphonesimulator13.2-x86_64.xctestrun",
"device": "iPhone 11 Pro",
"num-sims": 2,
"reuse-simulator": true,
"failure-tolerance": 1,
"only-retry-failed": true,
"output-dir": "test_results/",
"screenshots-directory": "screen/"
}
The screen folder is created but its empty. My thinking is that failed test cases would be saved there. test_results folder is within the project folder and is successfully created with the html report and other artifacts. Does the html report attach failed test cases screenshots? Attached verbose logs logs.txt
@ob Did you get a chance to look at it? Thanks
Sorry, I got distracted ;-)
So from your logs:
[20:44:28]: ▸ {12302} 20200318.204428 [ DEBUG ] (BP-1) [CONFIGURATION] screenshotsDirectory: /Users/baxio/Downloads/collate_errors-master/fastlane/screen
I assume there are no screenshots in that directory?
@ob Correct there are no screenshots in the directory but the directory itself is created successfully.
Ok, can you try something? Can you try changing this line:
from a SIGKILL
to a SIGTERM
and see if that fixes it?
@ob Can I installed via homebrew, do you want me to install the binaries to be able to make this change?
Ah, sorry yeah... you'd have to build from source to try it.
@ob I made the change and build from sources and still screenshots folder is empty.
@ob Do you know if there is a way to specify more than one type of device, for example"
devices: ["iPhone 11", "iPad Pro"]
If not, then what is the best way to execute same tests for both iPhone and Tablet without having to them sequentially?
@ob Sorry, just wanted to check if you got a chance to respond :)
Sorry, I've been swamped with something else ;-)
Bluepill doesn't currently support multiple devices. Can you file an issue asking for this feature?
@Husseinovich thanks reporting this issue.
Can you please open an feature request?
I have a few questions:
Below is my config file: