Commit d7382770 authored by Tomáš Hübelbauer's avatar Tomáš Hübelbauer

Report all run results at the end of test run

parent 065e52e9
......@@ -14,9 +14,16 @@ const exec = util.promisify(child_process.exec);
async function test() {
console.log('Running Office tests…\n');
await run(testWordBasic, 'docx', 'Word - basic');
await run(testExcelBasic, 'xlsx', 'Excel - basic');
await run(testPowerPointBasic, 'pptx', 'PowerPoint - basic');
const results = [];
results.push(await run(testWordBasic, 'docx', 'Word - basic'));
results.push(await run(testExcelBasic, 'xlsx', 'Excel - basic'));
results.push(await run(testPowerPointBasic, 'pptx', 'PowerPoint - basic'));
for (const result of results) {
......@@ -79,11 +86,11 @@ async function run(harness, type, name) {
console.log(`Testing ${officeFilePath}…`);
console.log(`Testing ${officeFilePath}\n`);
try {
test(path.join(temporaryDirectoryPath, `office.${type}.git`));
return `Succeeded`;
} catch (error) {
console.log('…failed with error', error);
return `Failed with an error ${error.message}`;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment