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
{{ message }}
This repository was archived by the owner on Mar 13, 2025. It is now read-only.
Change text as the example test case no longer uses Fongo.
Add the EmbeddedMongoClient trait to the documentation as
the example is not complete without it. Mention that the
test examples now use testcontainers.
Close#154
Copy file name to clipboardExpand all lines: docs/src/docs/asciidoc/testing.adoc
+8-2Lines changed: 8 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -4,13 +4,19 @@ To write unit tests with MongoDB and Spock you can simply extend from `grails.te
4
4
uses by default a `MongoClient` instance that connects to a MongoDB instance as defined in your configuration
5
5
(by default, `localhost` and port `27017`, see <<gettingStarted>> for more details):
6
6
7
+
It is preferable to use testcontainers to automatically run MongoDB in a containerized environment and not have to run a MongoDB instance locally. The following examples use testcontainers:
0 commit comments