You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Chapter-2-modules-separation/README.adoc
+12-15Lines changed: 12 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -138,24 +138,21 @@ to download it from the official Microsoft website.
138
138
139
139
=== Run locally
140
140
141
-
The Fitnet application uses .NET Aspire for orchestration.
141
+
The Fitnet application uses .NET Aspire for local development.
142
142
143
-
There are only 2 steps you need to start the application:
143
+
To run the application locally, follow these steps:
144
144
145
-
1. Make sure that you are in `/Src` directory.
146
-
2. Run `dotnet run --project Fitnet.AppHost` to start the application. This will automatically start PostgreSQL container and the Fitnet application, providing an observability dashboard.
145
+
1. **Ensure Docker is running** on your machine.
146
+
2. **Navigate to the solution root directory** in your terminal.
147
+
3. **Run the AppHost project using the following command:**
147
148
148
-
The application runs on a dynamically assigned port. Check the Aspire dashboard (which will open automatically in your browser) to see the application URL and access the Swagger UI.
149
+
=== How to run Integration Tests?
150
+
To run the integration tests for the project located in the `Fitnet.IntegrationTests` project, you can use either the command:
149
151
150
-
That's it! You should now be able to run the application. The Aspire dashboard provides real-time monitoring and links to all services. :thumbsup:
152
+
`dotnet test`
153
+
154
+
or the `IDE test explorer`.
155
+
156
+
These tests are written using `xUnit` and require `Docker` to be running as they use `test containers` package to run PostgresSQL in a Docker container during testing.
151
157
152
-
=== How to run Integration Tests?
153
-
To run the integration tests go to a module integration tests (`SelectedModule.IntegrationTests`) and run using either the command:
154
-
[source,shell]
155
-
----
156
-
dotnet test
157
-
----
158
-
or the `IDE test Explorer`.
159
-
160
-
These tests are written using `xUnit` and require `Docker` to be running as they use `test containers` package to run PostgresSQL in a Docker container during testing.
161
158
Therefore, make sure to have `Docker` running before executing the integration tests.
0 commit comments