Skip to content

Commit

Permalink
Add report for each tool in suite
Browse files Browse the repository at this point in the history
Suites with multiple tools are placed in the same directory, so the report must be created for each of the tools with different names.
  • Loading branch information
davelopez committed Feb 23, 2021
1 parent d49545e commit f1a43bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/src/planemo/testing/testRunner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ export class PlanemoTestRunner implements ITestRunner {

private getTestHtmlReportFilePath(testFile: string): string {
const baseDir = path.dirname(testFile);
const reportFile = path.resolve(baseDir, `tool_test_output.html`);
const testFileName = path.basename(testFile, Constants.TOOL_DOCUMENT_EXTENSION).replace(".", "");
const reportFile = path.resolve(baseDir, `${testFileName}_test_report.html`);
return reportFile;
}
}

0 comments on commit f1a43bf

Please sign in to comment.