3 ms·
Nobody can agree on what a unit test is either. I've seen people say that: * If it uses an xUnit framework it's a unit test. * That since the whole applicatio
by pydry 5y ago
Nobody can agree on what a unit test is either. I've seen people say that:
* If it uses an xUnit framework it's a unit test.
* That since the whole application constitutes a unit then a test for the whole application is a unit test.
* That anything that doesnt use the UI is a unit test.
Both names should be trashed, IMO. They both lack clear boundaries.
- Tainnor 5y agoI wholeheartedly agree that people can't agree on what "unit test" means precisely, either (even though I think your specific examples are a bit disingenuous). In particular, classical and London-school / mockist TDD have rather different definitions of it. That's why it's important to have a well-rounded test strategy with different types of tests that have different purposes, instead of using some blanket approaches.
- pydry 5y agoHow on earth are they disingenuous?