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: docs/tutorials/http-application.md
+12-5Lines changed: 12 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -100,6 +100,13 @@ From there, you can get:
100
100
- access to the configured health check endpoints
101
101
- access to the loaded modules information (when exposed)
102
102
103
+
Here we can see for example the [fxhttpserver](../modules/fxhttpserver.md) information in the `Modules` section:
104
+
105
+
- server port
106
+
- active routes
107
+
- error handler
108
+
- etc
109
+
103
110
See [fxcore](../modules/fxcore.md) documentation for more information.
104
111
105
112
## Application implementation
@@ -917,11 +924,11 @@ Yokai's [bootstrapper](../modules/fxcore.md#bootstrap) provides a `RunTest()` fu
917
924
918
925
This will automatically set the env var `APP_ENV=test`, and will [load your test configuration](../modules/fxconfig.md#dynamic-env-overrides).
919
926
920
-
For our tests:
927
+
For our tests, we can configure:
921
928
922
-
-we can configure the [fxlog](../modules/fxlog.md#testing) module to send logs to a `test buffer`
923
-
-we can configure the [fxtrace](../modules/fxtrace.md#testing) module to send trace spans to a `test exporter`
924
-
-we can configure the [fxorm](../modules/fxorm.md#testing) module to use an [SQLite database](https://www.sqlite.org/index.html), in memory, to make our tests easily portable on any CI pipeline (no need to spin up a MySQL instance)
929
+
- the [fxlog](../modules/fxlog.md#testing) module to send logs to a `test buffer`
930
+
- the [fxtrace](../modules/fxtrace.md#testing) module to send trace spans to a `test exporter`
931
+
- the [fxorm](../modules/fxorm.md#testing) module to use an [SQLite database](https://www.sqlite.org/index.html), in memory, to make our tests easily portable on any CI pipeline (no need to spin up a MySQL instance)
925
932
926
933
Let's set the testing configuration in `config/config.test.yaml` and activate the `debug`:
927
934
@@ -973,7 +980,7 @@ This will enable your tests to use the SQLite database automatically with the sc
973
980
974
981
We can now provide `functional` tests for your application endpoints.
975
982
976
-
Let's create our `ListGopherHandler` test in the `gopher_test` package:
983
+
Let's create our `TestListGophersHandlerSuccess` test in the `gopher_test` package:
0 commit comments