xcresults is a command-line tool designed to extract test summaries and screenshots from XCResult files generated by Xcode 11.
- Download the executable file:
wget https://github.com/eroshenkoam/xcresults/releases/latest/download/xcresults
- Make the file executable:
chmod +x xcresults
- Download the appropriate executable file:
wget https://github.com/eroshenkoam/xcresults/releases/latest/download/xcresults-i386 -o xcresults
- Make the file executable:
chmod +x xcresults
The general command format:
xcresults <command> <options>
For further assistance on any command, use the --help
option.
For a single file:
xcresults export /path/to/Test.xcresult -o /path/to/outputDirectory
For multiple files:
xcresults export /path/to/First.xcresult /path/to/Second.xcresult -o /path/to/outputDirectory
After exporting, you can generate an Allure report with the following command:
allure serve /path/to/outputDirectory