34
submitted 3 months ago* (last edited 3 months ago) by akash_rawal@lemmy.world to c/programming@programming.dev
you are viewing a single comment's thread
view the rest of the comments
[-] breadsmasher@lemmy.world 14 points 3 months ago* (last edited 3 months ago)

Ah! That’s what I didn’t understand. So its not a container for executing unit tests. Its a container for dependencies to support unit tests. That is not clear from the readme unless I missed something

edit - the title could be “Self terminating containers for real world dependencies to support your unit tests”

[-] MagicShel@programming.dev 11 points 3 months ago

This feels more like an integration test than a unit test to me. Maybe that's not an important distinction to make, but it feels like it would also help communicate intent.

[-] adam@doomscroll.n8e.dev 12 points 3 months ago

I'm reading this scratching my head going "If your unit tests need a database they ain't a unit test".

[-] akash_rawal@lemmy.world 2 points 3 months ago

Thanks man, my brain was short-circuited on Testcontainers so I couldn't write better. Also I am stealing the title.

this post was submitted on 09 Aug 2024
34 points (100.0% liked)

Programming

17351 readers
298 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 1 year ago
MODERATORS