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
[ Parent
| on HN ]
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"
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.