Skip to content

Commit 6833add

Browse files
authored
Update readme.md
1 parent e9d0569 commit 6833add

File tree

1 file changed

+21
-1
lines changed
  • testing-spring-boot-mongodb-testcontainer

1 file changed

+21
-1
lines changed
Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,22 @@
1-
# Testing Spring Boot RESTFul API
1+
# Testing Spring Boot Repository Using MongoDB Testcontainers
22

3+
Testcontainers are lightweight, throwaway container instances, used for common test cases like testing against a database, ActiveMQ or anything else that can run in a Docker container.
4+
5+
Testcontainers allows you to run your tests against a real instance of your application's dependencies, such as a real database, rather than against a mock or an in-memory database. We can configure the Testcontainers to closely mimic the production environment by using the specific versions of your dependencies and pre-loading with test data.
6+
7+
It spins up a new container instance for each test, hence every test is completely isolated from each other.
8+
9+
For running tests using the Testcontainers, we need to have the docker up and running, no other dependencies are required.
10+
11+
Read [the full article here](https://stacktips.com/articles/testing-spring-boot-repository-using-mongodb-testcontainers)
12+
13+
### Related topics:
14+
15+
* [#spring-boot](https://stacktips.com/topics/spring-boot)
16+
* [#android](https://stacktips.com/topics/android)
17+
* [#java](https://stacktips.com/topics/java)
18+
* [#python](https://stacktips.com/topics/python)
19+
* [#spring](https://stacktips.com/topics/spring)
20+
* [#design-pattern](https://stacktips.com/topics/design-pattern)
21+
* [#git](https://stacktips.com/topics/git)
22+
* [#maven](https://stacktips.com/topics/maven)

0 commit comments

Comments
 (0)