4 ms·
> Having tests not be order dependent is good for cases where you only want to run one test in a file. I absolutely understand the value and desire tests that
by tomlockwood 4y ago
> Having tests not be order dependent is good for cases where you only want to run one test in a file.
I absolutely understand the value and desire tests that run in isolation. That's super important to me.
> One could imagine a library with no such option where such tests would just fail due to ordering constraints.
One can also imagine a library with purely descriptive method names! And, perhaps that would be an even better library!
- dan-robertson 4y agoI think it’s reasonable to design the interface to guide users towards not making mistakes that will come back to bite them. Maybe this name is too antagonistic but it just seems basically benign to me.
- tomlockwood 4y agoIf code quality is a concern then I feel like it's reasonable for me to want a purely descriptive method name and a better warning mechanism.