Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,12 @@ A Playwright JSON test reporter to create test reports that follow the CTRF stan
</a>
</div>
</div>

<p style="font-size: 14px; margin: 1rem 0;">
Maintained by <a href="https://github.com/ma11hewthomas">Matthew Thomas</a><br/>

Contributions are very welcome! <br/>
Explore more <a href="https://www.ctrf.io/integrations">integrations</a>
Explore more <a href="https://www.ctrf.io/integrations">integrations</a> <br/>
We’d love your feedback, share it anonymously <a href="https://app.formbricks.com/s/cmefs524mhlh1tl01gkpvefrb">here</a>.

</p>
</div>

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "playwright-ctrf-json-reporter",
"version": "0.0.22",
"version": "0.0.23",
"description": "A Playwright JSON test reporter to create test results reports",
"main": "dist/index.js",
"scripts": {
Expand Down
6 changes: 6 additions & 0 deletions src/generate-report.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import path from 'path'
import fs from 'fs'
import crypto from 'crypto'

import {
type Suite,
Expand Down Expand Up @@ -73,6 +74,11 @@ class GenerateCtrfReport implements Reporter {
}

this.ctrfReport = {
reportFormat: 'CTRF',
specVersion: '0.0.0',
reportId: crypto.randomUUID(),
timestamp: new Date().toISOString(),
generatedBy: 'playwright-ctrf-json-reporter',
results: {
tool: {
name: 'playwright',
Expand Down
5 changes: 5 additions & 0 deletions types/ctrf.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
export interface CtrfReport {
reportFormat: string
specVersion: string
reportId: string
timestamp: string
generatedBy: string
results: Results
}

Expand Down