Skip to content
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

Generating an endpoint graph from an integration test #303

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

timsar2
Copy link

@timsar2 timsar2 commented Sep 14, 2021

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/

"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"ApiRoutesTest": {
Copy link
Member

Choose a reason for hiding this comment

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

Does this remove Kestrel?

Copy link
Author

Choose a reason for hiding this comment

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

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/

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.

2 participants