Skip to content

Commit ecf2b39

Browse files
Copilotkamilbaczek
andcommitted
Update documentation to match Chapter 1 format
Co-authored-by: kamilbaczek <74410956+kamilbaczek@users.noreply.github.com>
1 parent bf977ee commit ecf2b39

File tree

1 file changed

+12
-15
lines changed

1 file changed

+12
-15
lines changed

Chapter-2-modules-separation/README.adoc

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -138,24 +138,21 @@ to download it from the official Microsoft website.
138138

139139
=== Run locally
140140

141-
The Fitnet application uses .NET Aspire for orchestration.
141+
The Fitnet application uses .NET Aspire for local development.
142142

143-
There are only 2 steps you need to start the application:
143+
To run the application locally, follow these steps:
144144

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:**
147148

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:
149151

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.
151157

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.
161158
Therefore, make sure to have `Docker` running before executing the integration tests.

0 commit comments

Comments
 (0)