@testomatio/reporter 0.7.1 → 0.7.2

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,7 @@
1
+ # 0.7.2
2
+
3
+ * Fixed uploading non-existing file
4
+
1
5
  # 0.7.1
2
6
 
3
7
  * Support for NUnit XML v3 format
@@ -54,6 +54,11 @@ const uploadUsingS3 = async (filePath, runId) => {
54
54
  }
55
55
 
56
56
  const s3 = new AWS.S3(config);
57
+ if (!fs.existsSync(filePath)) {
58
+ console.error(chalk.yellow(`Artifacts file ${filePath} does not exist. Skipping...`));
59
+ return;
60
+ }
61
+
57
62
  const file = fs.readFileSync(filePath);
58
63
 
59
64
  Key = `${runId}/${randomUUID()}-${Key || path.basename(filePath)}`;
package/lib/xmlReader.js CHANGED
@@ -414,7 +414,7 @@ function reduceTestCases(prev, item) {
414
414
  if (!message) message = stack.trim().split('\n')[0];
415
415
 
416
416
  // prepend system output
417
- stack = `${testCaseItem['system-out'] || testCaseItem['output'] || testCaseItem.log || ''}\n\n${stack}`.trim()
417
+ stack = `${testCaseItem['system-out'] || testCaseItem.output || testCaseItem.log || ''}\n\n${stack}`.trim()
418
418
 
419
419
  prev.push({
420
420
  create: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@testomatio/reporter",
3
- "version": "0.7.1",
3
+ "version": "0.7.2",
4
4
  "description": "Testomatio Reporter Client",
5
5
  "main": "./lib/reporter.js",
6
6
  "repository": "git@github.com:testomatio/reporter.git",