-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
feat: introduce the new reporter API #7069
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
sheremet-va
merged 89 commits into
vitest-dev:main
from
sheremet-va:feat/new-reporter-api
Jan 14, 2025
Merged
Changes from 5 commits
Commits
Show all changes
89 commits
Select commit
Hold shift + click to select a range
38b967c
feat: introduce the new reporter API
sheremet-va 25bae18
chore: cleanup
sheremet-va 0998e4f
feat: introduce the new reporter API
sheremet-va 6f0da08
chore: cleanup
sheremet-va 64abbda
feat(reporters): add first 5/7 test run life cycles
AriPerkkio f3686b0
test: add initial test setup
AriPerkkio 9cd58e9
fix: report skipped tests, prevent duplicate queued
AriPerkkio 3f6edd5
fix: review
AriPerkkio 1b8264a
Merge branch 'feat/new-reporter-api' of github.com:sheremet-va/vitest…
sheremet-va 506cec5
refactor: don't allow undefined in getReportedEntity
sheremet-va 2624054
refactor: move collecton/enqueued to the test runner
sheremet-va ef9a086
refactor: remove test.skipped()
sheremet-va 10f3890
fix: correct skipped state
sheremet-va ebf3454
docs: cleanup
sheremet-va 5d2bd70
docs: remove skipped from suite methods
sheremet-va cd291db
feat: add onTestModuleCollected
sheremet-va 0ef6608
refactor: add events to TaskResultPack
sheremet-va d515785
docs: update result() docs
sheremet-va 87d313b
docs: add state() docs
sheremet-va 934087b
docs: fix result description
sheremet-va 6567412
docs: update metadata docs
sheremet-va 5e3b7cb
refactor: add event
sheremet-va 20696a5
chore: fix ts error
sheremet-va ed1332e
fix: set event in typechecking
sheremet-va 89baf8e
refactor: move log to test run
sheremet-va 4afce13
refactor: move onFinished
sheremet-va 4557b4b
fix: report skipped tests of suites
AriPerkkio 3e0990e
Merge remote-tracking branch 'upstream/main' into feat/new-reporter-api
AriPerkkio 1a74b1b
feat(reporter): `'dot'` to use new reporter API
AriPerkkio 84ddc2f
refactor: mark readonly properties
sheremet-va 1f03389
refactor: rename spec.module to spec.testModule
sheremet-va 19fd301
docs: update options type, remove "reporter api" warning
sheremet-va be5b429
feat(reporter): summary to use new reporter API, except before & afte…
AriPerkkio 02c0279
refactor: add comments and clarifications
sheremet-va 1c8fb37
chore: cleanup
sheremet-va f6c3571
refactor: remove `TaskParser`, use new reporter API completely
AriPerkkio eb36354
refactor: rename new APIs
AriPerkkio 0cef2b5
fix: resolve reporter life cycle from `onTaskUpdate` event field
AriPerkkio b5b962f
fix: report hooks only when they actually exist
AriPerkkio dd6ebc5
chore: add some test run docs and make arrays readonly
sheremet-va 44ad507
docs: fix link
sheremet-va 23730ae
Merge branch 'main' of github.com:vitest-dev/vitest into feat/new-rep…
sheremet-va c62f22b
refactor: add more docs, export TestRunEndReason and SerializedError
sheremet-va 409c401
fix: attempt to get order right
AriPerkkio 41985f3
fix: correct order for `TestCase`
AriPerkkio 208466b
docs: document more hooks
sheremet-va 2852271
refactor: rename hooks option
sheremet-va f8b657a
refactor: return diagnostic if test was retried
sheremet-va 44f588d
fix: single `beforeEach/afterEach` working
AriPerkkio d98e4eb
fix: multiple `beforeEach/afterEach` working
AriPerkkio d9d652a
refactor: rename test-case's Start/End -> Ready/Result
sheremet-va 97e51bd
test: refactor and add more tests
AriPerkkio c812be8
fix: report `beforeAll/afterAll` of `TestModule`
AriPerkkio a1b2051
refactor: don't parse events, keep the order in the runner (#3)
sheremet-va afe9935
chore: cleanup
sheremet-va 8d1abdd
docs: add onTestSuiteReady/onTestSuiteResult
sheremet-va 6a48858
chore: cleanup
sheremet-va 3b087fe
Merge branch 'main' of github.com:vitest-dev/vitest into feat/new-rep…
sheremet-va 8592c09
test: enable tests for suites
sheremet-va e56ffad
fix: don't report ctx.skip tests twice
sheremet-va 328594d
chore: events
sheremet-va 5c44c17
test: fix test
sheremet-va 06669e7
docs: cleanup
sheremet-va 330deee
fix: remove coverage from merge-reports
sheremet-va cb0110a
chore: always report onCoverage
sheremet-va db86137
fix: remove error with sharding
sheremet-va 0fd1b76
test: fix snapshot
sheremet-va 503cae0
refactor: cleanup
sheremet-va 9947672
test: add tests with delay to not check sync updates only
AriPerkkio 101a542
Merge remote-tracking branch 'upstream/main' into feat/new-reporter-api
AriPerkkio 7dc23e6
fix: dot reporter to check suite tests too
AriPerkkio 7a4dbff
chore: review fixes
AriPerkkio bcb6e71
docs: broken link
AriPerkkio 6bc4f8d
docs: correct onCoverage
AriPerkkio bef1eee
chore: review fixes
AriPerkkio 306a5cd
refactor: remove unused statistics from reported tasks
AriPerkkio 50cf790
refactor: remove unused statistics from reported tasks
AriPerkkio cf0e14f
Merge remote-tracking branch 'upstream/main' into feat/new-reporter-api
AriPerkkio e5e9638
build: fix paths
AriPerkkio 1a155c4
doc: jsdoc for reporter hooks
AriPerkkio 1fd9697
chore: review, typos, revert formatting-only changes
AriPerkkio 6d3b228
fix: report skipped tests in merge-reports
AriPerkkio ebff697
fix: add events to typechecker
AriPerkkio 3e93fb3
Merge branch 'main' of github.com:vitest-dev/vitest into feat/new-rep…
sheremet-va b46340d
chore: merge reporters types
sheremet-va 077f230
fix: call onTestRunStart/onTestRunEnd even if there are no files to run
sheremet-va 33c8544
fix: don't call `onCoverage` hook if there is no coverage to report
sheremet-va 59808e7
fix: correctly report merged reports
sheremet-va b4cb350
fix: correctly parse typecheck events and print TS icon in summary
sheremet-va File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| # Test Lifecycle | ||
|
|
||
| <!-- TODO: lifecyle diagram and reporter API --> | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.