Closed GoogleCodeExporter closed 9 years ago
In revision 2d2abe17f060.
Supports (mostly):
* Regexes for file name, Full path names (starting with "synoptic"), mostly
full paths names, etc (anything that would seem like it would match is
(hopefully) matched.
* Runs only files within Synoptic's test folder (anything under
synoptic/bin/synoptic/tests).
* Prints the name of all matching test files to be run.
Regexes for the file name aren't explicitly stated as being supported in the
comments I wrote, but they'll work so long as the file name isn't '*' or
something else that won't be parsed. I would have added more, but conditional
branching in ant is a bit haphazard.
Also, the only simple way for someone to set a parameter is with the
-Dparametername=foo option, so unfortunately, I don't think I'll be able to
implement 'ant test FooTest', and it'll have to stay as 'ant test
-Djunit.include=FooTest' for now.
Finally, if a file name is not supplied correctly at all, or -Djunit.include is
not set, then an error will be thrown accordingly.
The only thing I can think of that I haven't really implemented but might be
able to later (I only really hacked this together in about an hour, so don't
worry) is to catch/throw a simple exception rather than a stack trace if the
regex supplied by the user is malformed, since the current implementation just
injects it a larger regex.
Original comment by a.w.davi...@gmail.com
on 25 Apr 2012 at 10:00
Okay, this is already well done and will be useful! Fixed as of revision
2d5da1bcddee
Original comment by bestchai
on 25 Apr 2012 at 5:57
Original issue reported on code.google.com by
bestchai
on 25 Apr 2012 at 5:44