xcresults is a command-line tool designed to extract test summaries and screenshots from XCResult files generated by Xcode 11.
wget https://github.com/eroshenkoam/xcresults/releases/latest/download/xcresults
chmod +x xcresults
wget https://github.com/eroshenkoam/xcresults/releases/latest/download/xcresults-i386 -o xcresults
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