@testomatio/reporter 0.7.2 → 0.7.3-beta.1

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.3
2
+
3
+ * CodeceptJS: Upload all traces and videos from artifacts
4
+
1
5
  # 0.7.2
2
6
 
3
7
  * Fixed uploading non-existing file
@@ -148,7 +148,11 @@ function CodeceptReporter(config) {
148
148
  const files = [];
149
149
  if (artifacts.screenshot) files.push({ path: artifacts.screenshot, type: 'image/png' });
150
150
  // todo: video must be uploaded later....
151
- if (artifacts.video) videos.push({ testId: id, title, path: artifacts.video, type: 'video/webm' });
151
+
152
+ for (const aid in artifacts) {
153
+ if (aid.startsWith('video')) videos.push({ testId: id, title, path: artifacts[aid], type: 'video/webm' });
154
+ if (aid.startsWith('trace')) files.push({ testId: id, title, path: artifacts[aid], type: 'application/zip' });
155
+ }
152
156
 
153
157
  client.addTestRun(testId, TRConstants.FAILED, {
154
158
  ...stripExampleFromTitle(title),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@testomatio/reporter",
3
- "version": "0.7.2",
3
+ "version": "0.7.3-beta.1",
4
4
  "description": "Testomatio Reporter Client",
5
5
  "main": "./lib/reporter.js",
6
6
  "repository": "git@github.com:testomatio/reporter.git",