Skip to content

Commit

Permalink
Merge branch 'feat/refactor-artifacts' of github.com:testomatio/repor…
Browse files Browse the repository at this point in the history
…ter into feat/refactor-artifacts
  • Loading branch information
DavertMik committed Sep 26, 2024
2 parents 3ff64d8 + 449e111 commit 3fc390e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,15 +263,19 @@ class Client {
}

if (this.uploader.failedUploadsCount) {
console.log(APP_PREFIX, `${this.uploader.failedUploadsCount} artifacts failed to upload`);
console.log(
APP_PREFIX,
chalk.gray('[CLIENT]'),
`${this.uploader.failedUploadsCount} artifacts failed to upload`,
);
}

if (this.uploader.isEnabled && this.uploader.skippedUploadsCount) {
console.log(APP_PREFIX, `${chalk.bold(this.uploader.skippedUploadsCount)} artifacts skipped to upload`);
}

if (this.uploader.skippedUploadsCount || this.uploader.failedUploadsCount) {
const command = `TESTOMATIO_RUN=${this.runId} npx upload-artifacts`;
const command = `TESTOMATIO_RUN=${this.runId} npx @testomatio/reporter upload-artifacts`;
console.log(
APP_PREFIX,
`Run "${chalk.magenta(command)}" with valid S3 credentials to upload skipped & failed artifacts`,
Expand Down

0 comments on commit 3fc390e

Please sign in to comment.