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

fix(reporters):--merge-reports to show each total run times#7877

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

AriPerkkio
Copy link
Member

@AriPerkkioAriPerkkio commentedApr 23, 2025
edited
Loading

Description

Adds total test run times of each blob in test report of--merge-reports run. TheDuration is sum of all blobs. Below it we showPer blob durations.

Please don't delete this checklist! Before submitting the PR, please make sure you do the following:

  • It's really useful if your PR references an issue where it is discussed ahead of time. If the feature is substantial or introduces breaking changes without a discussion, PR might be closed.
  • Ideally, include a test that fails without this PR but passes with it.
  • Please, don't make changes topnpm-lock.yaml unless you introduce a new test example.

Tests

  • Run the tests withpnpm test:ci.

Documentation

  • If you introduce new functionality, document it. You can run documentation withpnpm run docs command.

Changesets

  • Changes in changelog are generated from PR name. Please, make sure that it explains your changes in an understandable manner. Please, prefix changeset messages withfeat:,fix:,perf:,docs:, orchore:.

kettanaito reacted with hooray emoji
@AriPerkkioAriPerkkioforce-pushed thefix/merge-reports-execution-times branch 3 times, most recently from6ba3c89 tob996dbfCompareApril 24, 2025 12:22
@netlifyNetlify
Copy link

netlifybot commentedApr 24, 2025
edited
Loading

Deploy Preview forvitest-dev ready!

Builtwithout sensitive environment variables

NameLink
🔨 Latest commitc2044d7
🔍 Latest deploy loghttps://app.netlify.com/sites/vitest-dev/deploys/681780b3124da8000826fe5f
😎 Deploy Previewhttps://deploy-preview-7877--vitest-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 yourNetlify site configuration.

@AriPerkkioAriPerkkioforce-pushed thefix/merge-reports-execution-times branch fromb996dbf to67ef233CompareApril 24, 2025 12:38
@AriPerkkioAriPerkkio marked this pull request as ready for reviewApril 24, 2025 12:53
@AriPerkkioAriPerkkioforce-pushed thefix/merge-reports-execution-times branch 2 times, most recently from4f540be tod02dca4CompareApril 29, 2025 06:14
Copy link
Member

@sheremet-vasheremet-va left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Generally, I dislikeexecutionTimes?: number[] as a public API.

What are these numbers? Why are the optional? Do we just keep adding new arguments to hooks? I think this needs to be standardizedsomehow

Maybe have something like aSubTestRun? OrShardTestRun

@AriPerkkio
Copy link
MemberAuthor

Do you have any suggestions what would be better way to pass data fromblob reporter'sreadBlob to other reporters? Should we instead store it inctx orctx.state?

@sheremet-va
Copy link
Member

Do you have any suggestions what would be better way to pass data fromblob reporter'sreadBlob to other reporters? Should we instead store it inctx orctx.state?

Storing it inctx.state seems like an interesting idea actually 🤔 Something likectx.state.blobs?

@AriPerkkioAriPerkkioforce-pushed thefix/merge-reports-execution-times branch fromd02dca4 toc2044d7CompareMay 4, 2025 14:58
@AriPerkkio
Copy link
MemberAuthor

AriPerkkio commentedMay 4, 2025
edited
Loading

Storing blobs inctx.state.blobs now. Base reporter is accessingexecutionTimes from state instead of reporter hooks.

@sheremet-vasheremet-va merged commitd613b81 intovitest-dev:mainMay 5, 2025
11 of 13 checks passed
@AriPerkkioAriPerkkio deleted the fix/merge-reports-execution-times branchMay 5, 2025 12:41
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@sheremet-vasheremet-vasheremet-va approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Total test duration is wrong in--merge-reports
2 participants
@AriPerkkio@sheremet-va

[8]ページ先頭

©2009-2025 Movatter.jp