playwright-ctrf-json-reporter 0.0.5 → 0.0.7

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/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # Playwright JSON Reporter - CTRF
2
2
 
3
- A Playwright test reporter to generate JSON test reports that are [CTRF](https://ctrf.io) compliant.
3
+ A Playwright JSON test reporter to create test reports that follow the CTRF standard.
4
4
 
5
- [Common Test Report Format](https://ctrf.io) helps you generate consistent JSON reports that are agnostic of specific programming languages or test frameworks.
5
+ [Common Test Report Format](https://ctrf.io) ensures the generation of uniform JSON test reports, independent of programming languages or test framework in use.
6
6
 
7
7
  ## Features
8
8
 
@@ -13,7 +13,45 @@ A Playwright test reporter to generate JSON test reports that are [CTRF](https:/
13
13
 
14
14
  ## What is CTRF?
15
15
 
16
- A JSON test report schema that is the same structure, no matter which testing tool is used. It's created to provide consistent test reporting agnostic of specific programming languages or testing frameworks. Where many testing frameworks exist, each generating JSON reports in their own way, CTRF provides a standardised schema helping you generate the same report anywhere.
16
+ CTRF is a universal JSON test report schema that addresses the lack of a standardized format for JSON test reports.
17
+
18
+ **Consistency Across Tools:** Different testing tools and frameworks often produce reports in varied formats. CTRF ensures a uniform structure, making it easier to understand and compare reports, regardless of the testing tool used.
19
+
20
+ **Language and Framework Agnostic:** It provides a universal reporting schema that works seamlessly with any programming language and testing framework.
21
+
22
+ **Facilitates Better Analysis:** With a standardized format, programatically analyzing test outcomes across multiple platforms becomes more straightforward.
23
+
24
+ ```json
25
+ {
26
+ "results": {
27
+ "tool": {
28
+ "name": "playwright"
29
+ },
30
+ "summary": {
31
+ "tests": 1,
32
+ "passed": 1,
33
+ "failed": 0,
34
+ "pending": 0,
35
+ "skipped": 0,
36
+ "other": 0,
37
+ "start": 1706828654274,
38
+ "stop": 1706828655782
39
+ },
40
+ "tests": [
41
+ {
42
+ "name": "ctrf should generate the same report with any tool",
43
+ "status": "passed",
44
+ "duration": 100
45
+ }
46
+ ],
47
+ "environment": {
48
+ "appName": "MyApp",
49
+ "buildName": "MyBuild",
50
+ "buildNumber": "1"
51
+ }
52
+ }
53
+ }
54
+ ```
17
55
 
18
56
  ## Installation
19
57
 
@@ -246,7 +246,7 @@ class GenerateCtrfReport {
246
246
  const str = JSON.stringify(data, null, 2);
247
247
  try {
248
248
  fs_1.default.writeFileSync(filePath, str + '\n');
249
- console.log(`${this.reporterName}: successfully written ctrf json to %s`, this.reporterConfigOptions.outputFile);
249
+ console.log(`${this.reporterName}: successfully written ctrf json to %s/%s`, this.reporterConfigOptions.outputDir, this.reporterConfigOptions.outputFile);
250
250
  }
251
251
  catch (error) {
252
252
  console.error(`Error writing ctrf json report:, ${String(error)}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "playwright-ctrf-json-reporter",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {