Output formatted ListReporter
results to an Excel workbook using
openxlsx. The workbook consists of a summary sheet
showing aggregated results for each context, and one sheet per context
showing details of each unsuccessful test.
output_results_excel(results, file)
An object of class testthat_results
, e.g. output from
test_dir()
or test_file()
.
Output file name
The return value of openxlsx::saveWorkbook()
.
if (FALSE) {
# Output the results from running all tests in a directory
x <- test_dir(".")
output_results_excel(x, "Test results.xlsx")
}