Skip to content

aleixmorgadas/testcontainers-scpna

Repository files navigation

testcontainers-scpna

Repository used during the workshop at Pamplona Software Crafteters.

  • without-testcontainers aims to share the problems of usnig mocks and the need of starting the infrastructure before running the integration tests. Aims to share the old way of doing it.
  • with-testcontainers aims to share how to declare dependencies for your tests as well as how to start your application using Container application dependencies for local development.
    • AbstractIntegrationTest: Shows how to declare a Postgres and a Kafka and they are used for all the tests instead of starting one instance per test class.
    • ProfileRepositoryTest is an example of a Postgres integration test.
    • KafkaIntegrationTest is an example of a Kafka integration test.
    • RunApplication contains the necessary application dependencies to start those containers for local development.

More information at

Have fun testing! 😄

docs

About

Pamplona Software Crafters Testcontainers Talk

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published