This bash script automates the extraction of screenshots from an Xcode test result (.xcresult) package. It requires the xcparse tool, which is used to extract the screenshots.
- xcparse
- Bash shell
Runs unit tests and extracts captured images to the ./screenshots directory relative to the Xcode project or workspace.
$ ./screenshots.sh --argument <Options>
--project The name of the Xcode project.
--workspace The name of the Xcode workspace.
--scheme The project scheme to build.
--testLanguage The language to run the simulator/unit tests in.
--argument A command line argument that will be passed directly to your unit tests. You should wrap the argument in quotes. You may pass as many arguments as needed.
--usage Prints usage information.
Bug reports and pull requests are welcome on GitHub at https://github.com/joeypatino/screenshots. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
Joey Patino – @nsinvalidarg – [email protected]
screenshots is available as open source under the terms of the MIT License.