Skip to content

Conversation

@google-labs-jules
Copy link
Contributor

This change refactors the test execution and result reporting logic.

  • The TestSuite.ExecuteAsync method has been updated to return a TestResult object directly, simplifying the flow in FUnit.RunAsync.
  • The TestResult.Test record has been changed to support multiple errors by using an IReadOnlyList<Error>? instead of a single Error?.
  • The SkippedTests property has been removed from TestResult. Skipped tests are now determined by checking if ExecutionCount is 0, as per the new logic.
  • All timestamp-related work is now handled in TestSuite.ExecuteAsync, and TestResult now contains TotalExecutionTime.
  • Failure logging in FUnit.RunAsync has been updated to safely get the first error using FirstOrDefault() and to no longer log the stack trace.

PR created automatically by Jules for task 15002481801996859869

- `TestSuite.ExecuteAsync` now returns `TestResult`.
- `TestResult.Test` now has `IReadOnlyList<Error>? Errors` instead of `Error?`.
- Removed `SkippedTests` from `TestResult`. Skipped tests are now identified by checking `ExecutionCount`.
- `TestSuite.ExecuteAsync` is responsible for all timestamp-related work.
- Updated failure logging to be safer and not log stack traces.
- `TestResult` now contains `TotalExecutionTime`.
@google-labs-jules
Copy link
Contributor Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll acknowledge your comments with a 👀 emoji and then get to work. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

I will automatically address your feedback. For any comments you don't want me to act on, just include (aside).



For security, I will only act on instructions from the user who triggered this task for this pull request.

@sator-imaging sator-imaging self-requested a review September 21, 2025 09:44
@sator-imaging sator-imaging marked this pull request as ready for review September 21, 2025 09:55
@sator-imaging sator-imaging merged commit cf4a42b into main Sep 21, 2025
@sator-imaging sator-imaging deleted the refactor-test-result branch September 24, 2025 01:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant