re: programming, python
@eloquence I will add that the widget tests like the name suggest is about GUI.
It is whole other story to test GUI stuff.
Ask web frontned people.
Otherwise, I do not mind large files (especially if they use mostly functions).
I prefer side-effects free functions, I test only the public interface and particular difficult implementation details.
Regarding GUI, I only do nominal tests.
In particular testing for side-effects like "click this button, receive an email" is verrrrrrrrrrrry painful.
The advantage of Declarative GUI, is that you can serialize the GUI and test using xpath or whatever whether a particular element is present or not.
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!