-
Notifications
You must be signed in to change notification settings - Fork 62
Fix run_tests
response
#20
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
Fix run_tests
response
#20
Conversation
📝 WalkthroughWalkthroughThe changes update the test reporting logic across both the editor and server tools. The editor tool now records only leaf test results and constructs the test summary using direct counts from the test result adaptor, adding more detailed fields such as fail, skip, and inconclusive counts to the output JSON. Corresponding updates in the server-side JavaScript and TypeScript handlers extract and include these new counts from the response, ensuring that the returned JSON output reflects the enhanced detail and accuracy of test result reporting. No changes were made to public interfaces or exported entity signatures. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant ServerTool (JS/TS)
participant EditorTool (C#)
User->>ServerTool: Request to run tests
ServerTool->>EditorTool: Trigger test execution
EditorTool->>EditorTool: Run tests, collect leaf results
EditorTool->>EditorTool: Build summary with pass, fail, skip, inconclusive counts
EditorTool-->>ServerTool: Return JSON with detailed counts and results
ServerTool-->>User: Respond with enhanced JSON output
Poem
Tip ⚡💬 Agentic Chat (Pro Plan, General Availability)
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (3)
🔇 Additional comments (9)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a very good pull request
Thank you @nowsprinting
Problem
Test count in response is always 0.
No test results.
e.g.,
Fixes
Returns
e.g.,
Discussions
When there are a lot of tests, you shouldn't return the results of all the tests.
Summary by CodeRabbit