DustMite, a D test case minimization tool
Vladimir Panteleev
vladimir at thecybershadow.net
Tue May 24 15:42:06 PDT 2011
On Tue, 24 May 2011 00:04:39 +0300, Robert Clipsham
<robert at octarineparrot.com> wrote:
> On 20/05/2011 23:01, Vladimir Panteleev wrote:
>> I've tested it with a self-induced "bug" in std.datetime, it seems to
>> work great. If you find that it breaks on something, let me know.
>
> Wow, this tool works fantastically! Narrowed down a 5000 line test case
> to about 80 lines (I've managed to get it down to 26 lines by removing
> comments/make semantic changes there's no way it would be able to do
> without some sort of semantic analysis). I'd note that the code wasn't
> the most simple either, involving templates, mixins, ctfe, objects, etc.
> A couple of notes that we've already discussed, but I'll paste here for
> others:
>
> * The tool spent about 10 minutes figuring out if it was ok to delete
> files in .git, then deleting them - this pretty much doubled the time
> taken to run the tool!
> * It took me a while to figure out, the test command is run from the
> directory you pass on the command line.
>
> You also score bonus points for being far simpler to set up than delta,
> and working *a lot* better than it (for D at least, I haven't tried it
> with anything else). Well done.
Thanks! I've improved it based on your and others' feedback, and wrote
some documentation:
https://github.com/CyberShadow/DustMite/wiki
--
Best regards,
Vladimir mailto:vladimir at thecybershadow.net
More information about the Digitalmars-d
mailing list