Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Include all child steps for test steps #9

Open
@apatelia

Description

@apatelia

Currently, in CTRF report, all the test steps provide only "name" and "status" of given step.

Playwright provides many more details for each of the step, including a step's category, execution duration, location in source code and all the child steps.

Now that the 'step' object has been updated to include 'extra' property, child steps and other step details should be included in the CTRF report for Playwright.

For example, following test is currently reported without any steps.

test("has title @title",async({ page})=>{awaitpage.goto("https://playwright.dev/");awaitexpect(page).toHaveTitle(/Playwright/);});
{"name":"has title @title","status":"passed","duration":1140,"start":1729428643,"stop":1729428644,"rawStatus":"passed","tags": ["@title"  ],"type":"e2e","filePath":"/path-to-project-dir/tests/example.spec.ts","retries":0,"flaky":false,"steps": [],"suite":"chromium > example.spec.ts","extra": {"annotations": []  }}

Ideally, it should be reported with both the steps included insteps property. For CTRF to be useful for debugging the tests, all step details including child steps, are needed to be on the report.

It should also be noticed that currently, none of the steps inside any hooks like beforeAll(), beforeEach(), afterAll() and afterEach() are reported in CTRF json.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp