Skip to content

Builder style tests don't work well with Vitest Github Actions reporter #379

@sazzer

Description

@sazzer

Describe the bug
Firstly, I'm not sure if this is a Pactum or Vitest issue but I think it's probably more here.

When writing Pactum tests in the Builder style, if you're using Vitest as the test runner and have the github-actions reporter configured then the test failures aren't correctly reported.

They are correctly reported if you use the BDD style tests

To Reproduce
See https://github.com/sazzer/vitest-gha
In particular, see https://github.com/sazzer/vitest-gha/actions/runs/10849090321 as a test run with this problem. There are two test failures - one for each of Builder and BDD style - but only one annotation added to the action.

Expected behavior
Annotations added for test failures in both the Builder and BDD style tests.

Screenshots
image
image

Software (please complete the following information):

  • OS: Running on Github Actions ubuntu-latest runner
  • NodeJS Version: latest
  • Test Runner: vitest

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is neededquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions