by mabbo · 11y ago · 0 comments
> we generated 31,000 test suites for five systems consisting of up to 724,000 lines of source code
You auto-generated unit tests suites, and you're surprised they weren't very good at finding bugs? Well, no kidding, they were auto-generated! Would you trust your unit tests to be generated by a computer? Of course not.
Do a study of real-world software, and compare the unit test coverage to the Test Suite effectiveness. Then I'll be interested.
Now, our method is arguably not 100% realistic either, because in practice different parts of the program will have different coverage. Some kind of weighted random sampling might make suites that are a bit closer to "real" suites. I've been thinking about looking into that. I think our suites are realistic enough to make the results worthwhile, though.