News for hackers. Stuff that matters.
Re:Why Most Unit Testing is Waste [pdf] by singingfish on Thursday March 06, 2014 @02:42PM (#7356083)
on the other hand

my $thing = $thingloader->new($some_complex_data); ok ($thing->isa('Specific::Kind::Of::Thing')

is fine and useful.

Re:Why Most Unit Testing is Waste [pdf] by ddebernardy on Thursday March 06, 2014 @06:16PM (#7357216)
Doubtful. That should be using dependency injection.

At the very most you should be expecting an interface, and not having the correct one should yield a runtime error within the code to begin with.

Re:Why Most Unit Testing is Waste [pdf] by emddudley on Thursday March 06, 2014 @09:09PM (#7358073)
It would be a useful test for a dependency injection framework ;-)
Re:Why Most Unit Testing is Waste [pdf] by singingfish on Friday March 07, 2014 @01:20AM (#7358813)
That's what it is. You have a unified interface for generating things, and you need to have deterministic test to make sure your thing is being generated correctly and the data generates the thing fully and correctly.