Generating an endpoint graph from an integration test#303
Open
timsar2 wants to merge 2 commits intofullstackhero:masterfrom
Open
Generating an endpoint graph from an integration test#303timsar2 wants to merge 2 commits intofullstackhero:masterfrom
timsar2 wants to merge 2 commits intofullstackhero:masterfrom
Conversation
opening Test Explorer, navigating to the GenerateGraph test, and clicking "Open additional output for this result Right Click and select all, then past it to https://dreampuf.github.io/GraphvizOnline/ https://github.com/andrewlock/blog-examples/tree/master/VisualisingRoutes/ApiRoutesTest https://andrewlock.net/adding-an-endpoint-graph-to-your-aspnetcore-application/
…rosoft.NET.Sdk.Web">
iammukeshm
reviewed
Sep 15, 2021
| "ASPNETCORE_ENVIRONMENT": "Development" | ||
| } | ||
| }, | ||
| "ApiRoutesTest": { |
Author
There was a problem hiding this comment.
Does this remove Kestrel?
This is just a xUnit Test Project, You can remove all of this config.
Also, it is possible to refactor the code, By deleting the ApiRouteTest project and implement it inside of the SERVER project as a new endpoint "/graph"
But this approach is better as the author said in the article :
https://andrewlock.net/adding-an-endpoint-graph-to-your-aspnetcore-application/
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Run test as debug mode "Debug Test" you will face an error from BlazorHero.CleanArchitecture.Server that say System can not find "Files" directory. it must be fix.
but for now, you can just make Files directory inside of ApiRoutesTest\bin\Debug\net5.0
Then run the test and click on the result from test explorer.
right click and copy all
then past it to https://dreampuf.github.io/GraphvizOnline/