Replies: 3 comments
-
Transferring this to the Aspire repo as it's not specifically about a sample. |
Beta Was this translation helpful? Give feedback.
-
Personally, I don't think this queston is about a specific tech but rather a philosophical question. And it is somewhat a like "should I drink tea or coffee". There several layers to this questions:
Let's start with the latter.
Some projects like to flatten the folder hirarchy and do something like this:
Personally, I find the latter organisation less organised as I have to hunt down the "right" folder. The "virtual" solution representation should mirror the physical organisation IMO, otherwise it creates a significant mental overhead and a barrier for contributors to navigate the solution and effectively contribute to it. Beond that - organise the way that works for you and your team :) |
Beta Was this translation helpful? Give feedback.
-
I prefer to isolate each test within its related project. This approach simplifies maintenance and helps each team, working on their specific project, know exactly where to find it. Essentially, it would look something like this:
If, for some reason, you need to have a centralized project for benchmarking, you could simply reference the necessary ones in an aggregate project. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a dotnet Aspire project and I have added a web API project to the AppHost Project, I have written the Unit/Integration Test for the Web API in the same solution which contains the AppHost and Web API. Is it a good way or is there any better way to organize the Unit/Integration tests? Here is my folder structure.

Beta Was this translation helpful? Give feedback.
All reactions