rstest icon indicating copy to clipboard operation
rstest copied to clipboard

feat(vscode): report test run progress

Open claneo opened this issue 1 week ago • 1 comments

Changes Summary

  1. core
    1. Support pass logger to default reporter
    2. Add two new reporter hooks: onTestSuiteStart and onTestSuiteResult
    3. Support match test case with testNamePattern exactly (This is still a temporary solution that cannot handle cases where the name contains >. I plan to support matching by arrays instead of strings in the future.)
    4. Stop stringify actual and expected value in error object
  2. vscode extension
    1. New features, see below
    2. Simplified updateFromContents, now ancestors stack is poped when exit astnode
    3. Enqueued all test items before run them

New Features

  1. Realtime test result
  2. Pipe default reporter to test results panel
  3. Place error message at right location
  4. Display error stack if exist
  5. Display expected and actual value if it is a mismatch error
  6. Support update snapshot if it is a snapshot mismatch error

https://github.com/user-attachments/assets/464e4fdd-c18e-42fc-a878-da5d0663952f

Problems

  1. Sourcemap does not work if debugger attached, causes error stack is wrong
  2. Is it ok to import core source code from vscode extension directly?

Related Links

Checklist

  • [x] Tests updated (or not required).
  • [ ] Documentation updated (or not required).

claneo avatar Nov 27 '25 02:11 claneo

Deploy Preview for rstest-dev ready!

Name Link
Latest commit 7cfaa6e8a0a73a1528123a280b52dddc45e11fc3
Latest deploy log https://app.netlify.com/projects/rstest-dev/deploys/69302f56e7675f000840af9d
Deploy Preview https://deploy-preview-720--rstest-dev.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

netlify[bot] avatar Nov 27 '25 02:11 netlify[bot]