News for hackers. Stuff that matters.
Re:Testcontainers by alifaziz on Tuesday February 27, 2024 @07:16PM (#39532133)
Unit test suppose to be fast. Especially during coding. I wonder how this is necessary & not affecting the test feedback speed
Re:Testcontainers by alemanek on Tuesday February 27, 2024 @07:28PM (#39532271)
This is for integration tests.
Re:Testcontainers by thomasfromcdnjs on Tuesday February 27, 2024 @08:34PM (#39532783)
Homepage hero says "Unit tests with real dependencies"
Re:Testcontainers by alemanek on Wednesday February 28, 2024 @12:19PM (#39540945)
A unit test with real dependencies is by definition an integration test isn’t it?

I guess the unit in “Unit Test” is a bit subjective but every place I have worked we wrote both unit and integration tests that lived side by side. Integration tests used Test Containers and Unit Tests were isolated with mocks. So, only functional difference was the “unit” under test being more, or less, isolated.

Re:Testcontainers by marginalia_nu on Tuesday February 27, 2024 @07:27PM (#39532253)
Testcontainers are surprisingly fast. Like seconds of runtime for a suite.