-
Notifications
You must be signed in to change notification settings - Fork 50
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
Replace "Generate Tests" with "Analyze Test Coverage" in Repository Node #2501
Comments
@tomsmith8 assign me? |
@tomsmith8 Please assign me? |
@tomsmith8 assign? |
@tomsmith8 please assign? |
Who is around to pick this up today? |
@tomsmith8 I am available 😊 |
Note: for testing the endpoint won't work but the sample response should be sufficient to render nodes in the graph like normal from the |
@tomsmith8 any UI design ? |
These actions only appear node_type Repostiory |
@Rassl Could you please guide me in which format we will get response 'functions' key as I have not get any reference endpoint response format ?
|
Its the same logic and foramt for how we render nodes from search endpoint /graph/search. We return |
|
Context
In our current graph interface, the "Generate Tests" action for a selected Repository node is being replaced with "Analyze Test Coverage." This change is necessary to provide users with a more relevant analysis of their codebase, focusing on test coverage. The functionality will allow users to assess the extent of test coverage directly from the graph interface, contributing to better code quality and maintainability. This enhancement fits into our larger system of improving code analysis tools and providing actionable insights to developers.
Task
/github/analyze?github_repository={repository_name}&analysis=["coverage"]
using the selected repository's name.functions
key from the analysis response.Outcome
The outcome of this ticket is a functional "Analyze Test Coverage" feature that replaces the existing "Generate Tests" action.
Users should be able to trigger a test coverage analysis, view all the nodes in the graph.
Design
/github/analyze
endpoint with thegithub_repository
parameter set to the selected repository's name and the analysis type set to["coverage"]
.functions
key from the API response to render nodes in the graph. Each function node should display whether it has a test associated with it.Acceptance Criteria
/github/analyze
API is called with the correct repository name and analysis type.functions
key of the analysis response.The text was updated successfully, but these errors were encountered: