Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "qas-cli",
"version": "0.4.2",
"version": "0.4.3",
"description": "QAS CLI is a command line tool for submitting your automation test results to QA Sphere at https://qasphere.com/",
"type": "module",
"main": "./build/bin/qasphere.js",
Expand Down
4 changes: 3 additions & 1 deletion src/utils/result-upload/ResultUploader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,9 @@ ${chalk.yellow('To fix this issue, choose one of the following options:')}
attachmentUrls.push({ url, name: attachment.filename })
}
}
comment += `\n<h4>Attachments:</h4>\n${makeListHtml(attachmentUrls)}`
if (attachmentUrls.length > 0) {
comment += `\n<h4>Attachments:</h4>\n${makeListHtml(attachmentUrls)}`
}
}

await this.api.runs.createResultStatus(this.project, this.run, tcase.id, {
Expand Down