playwright-ctrf-json-reporter 0.0.7 → 0.0.8

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Matthew Thomas
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,4 +1,6 @@
1
- # Playwright JSON Reporter - CTRF
1
+ # Playwright JSON Test Results Report
2
+
3
+ > Save Playwright test results as a JSON file
2
4
 
3
5
  A Playwright JSON test reporter to create test reports that follow the CTRF standard.
4
6
 
@@ -125,8 +127,6 @@ The test object in the report includes the following [CTRF properties](https://c
125
127
  | `browser` | String | Optional | The browser used for the test. |
126
128
  | `screenshot` | String | Optional | A base64 encoded screenshot taken during the test. |
127
129
 
128
- |
129
-
130
130
  ## Advanced usage
131
131
 
132
132
  Some features require additional setup or usage considerations.
@@ -198,3 +198,7 @@ test('example test', async ({ page }) => {
198
198
  ```
199
199
 
200
200
  The browser metadata file must be called metadata.json and contain properties name and version in the body.
201
+
202
+ ## Support Us
203
+
204
+ If you find this project useful, consider giving it a GitHub star ⭐ It means a lot to us.
@@ -114,6 +114,7 @@ class GenerateCtrfReport {
114
114
  ((_c = this.extractMetadata(testResult)) === null || _c === void 0 ? void 0 : _c.version) !== undefined)
115
115
  test.browser = `${(_d = this.extractMetadata(testResult)) === null || _d === void 0 ? void 0 : _d.name} ${(_e = this.extractMetadata(testResult)) === null || _e === void 0 ? void 0 : _e.version}`;
116
116
  }
117
+ console.log(`${JSON.stringify(test)}`);
117
118
  ctrfReport.results.tests.push(test);
118
119
  }
119
120
  updateSummaryFromTestResult(testResult, ctrfReport) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "playwright-ctrf-json-reporter",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {