Skip to content

Commit 84383e3

Browse files
authored
Merge pull request #2 from estruyf/dev
2 parents 9b23449 + 3e6c4df commit 84383e3

File tree

4 files changed

+16
-3
lines changed

4 files changed

+16
-3
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## [1.2.0]
6+
7+
- Show console logging
8+
59
## [1.1.0]
610

711
- Update test suite logic

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@estruyf/github-actions-reporter",
3-
"version": "1.1.0",
3+
"version": "1.2.0",
44
"description": "GitHub Actions reporter for Playwright",
55
"main": "dist/index.js",
66
"scripts": {

src/index.ts

+9
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import type {
44
Suite,
55
TestCase,
66
FullResult,
7+
TestResult,
78
} from "@playwright/test/reporter";
89
import * as core from "@actions/core";
910
import { basename } from "path";
@@ -29,6 +30,14 @@ class GitHubAction implements Reporter {
2930
this.suite = suite;
3031
}
3132

33+
onStdOut(
34+
chunk: string | Buffer,
35+
test: void | TestCase,
36+
result: void | TestResult
37+
): void {
38+
console.log(chunk.toString());
39+
}
40+
3241
async onEnd(result: FullResult) {
3342
if (process.env.GITHUB_ACTIONS && this.suite) {
3443
const os = process.platform;

0 commit comments

Comments
 (0)