3 ms·
And ironically enough, it ends up being easier to write test harnesses with dynamic languages because it is easier to mock things up. With languages like Java,
by mustpax 17y ago
And ironically enough, it ends up being easier to write test harnesses with dynamic languages because it is easier to mock things up.
With languages like Java, the inherent rigidity requires all sorts of ugly ugly reflection hacks, and factory, impl, interface proliferation to get the flexible testing behavior you get for free with more dynamic languages.
If you need to add new language primitives to make unit testing practical, maybe your language is too cumbersome.