@testomatio/reporter 0.6.8 → 0.6.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/Changelog.md CHANGED
@@ -1,3 +1,11 @@
1
+ # 0.6.10
2
+
3
+ * Fixed uploading multilpe artifacts in Playwright
4
+
5
+ # 0.6.9
6
+
7
+ * Fixed pending tests reports for Cypress
8
+
1
9
  # 0.6.8
2
10
  # 0.6.7
3
11
 
@@ -55,7 +55,12 @@ const testomatioReporter = on => {
55
55
 
56
56
  const files = [...videos, ...screenshots];
57
57
 
58
- const state = test.state === 'passed' ? TRConstants.PASSED : TRConstants.FAILED;
58
+ switch (test.state) {
59
+ case 'passed': state = TRConstants.PASSED; break;
60
+ case 'failed': state = TRConstants.FAILED; break;
61
+ case 'skipped':
62
+ case 'pending': state = TRConstants.SKIPPED;
63
+ }
59
64
 
60
65
  addSpecTestsPromises.push(client.addTestRun(testId, state, {
61
66
  title, time, example, error, files, suite_title: suiteTitle, suite_id: suiteId
@@ -2,6 +2,7 @@ const AWS = require('aws-sdk');
2
2
  const fs = require('fs');
3
3
  const path = require('path');
4
4
  const chalk = require('chalk');
5
+ const { randomUUID } = require('crypto');
5
6
  const memoize = require('lodash.memoize');
6
7
  const { APP_PREFIX } = require('./constants');
7
8
 
@@ -55,7 +56,7 @@ const uploadUsingS3 = async (filePath, runId) => {
55
56
  const s3 = new AWS.S3(config);
56
57
  const file = fs.readFileSync(filePath);
57
58
 
58
- Key = `${runId}/${Key || path.basename(filePath)}`;
59
+ Key = `${runId}/${randomUUID()}-${Key || path.basename(filePath)}`;
59
60
  const ACL = TESTOMATIO_PRIVATE_ARTIFACTS ? 'private' : 'public-read';
60
61
 
61
62
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@testomatio/reporter",
3
- "version": "0.6.8",
3
+ "version": "0.6.10",
4
4
  "description": "Testomatio Reporter Client",
5
5
  "main": "./lib/reporter.js",
6
6
  "repository": "git@github.com:testomatio/reporter.git",