rstest
rstest copied to clipboard
feat(vscode): report test run progress
Changes Summary
- core
- Support pass logger to default reporter
- Add two new reporter hooks:
onTestSuiteStartandonTestSuiteResult - Support match test case with
testNamePatternexactly (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.) - Stop stringify
actualandexpectedvalue inerrorobject
- vscode extension
- New features, see below
- Simplified
updateFromContents, now ancestors stack is poped when exit astnode - Enqueued all test items before run them
New Features
- Realtime test result
- Pipe default reporter to test results panel
- Place error message at right location
- Display error stack if exist
- Display expected and actual value if it is a mismatch error
- Support update snapshot if it is a snapshot mismatch error
https://github.com/user-attachments/assets/464e4fdd-c18e-42fc-a878-da5d0663952f
Problems
- Sourcemap does not work if debugger attached, causes error stack is wrong
- 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).
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...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify project configuration.