Hacker News new | past | comments | ask | show | jobs | submit login

Unit test suppose to be fast. Especially during coding. I wonder how this is necessary & not affecting the test feedback speed



This is for integration tests.


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.


Testcontainers are surprisingly fast. Like seconds of runtime for a suite.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: