Hi all,
I've just committed a skeleton for the maven-testedby-plugin at
https://testedby.googlecode.com/svn/plugins/maven/trunk (to have
separate lifecycle from the TestedBy core and simplify the poms) . It
basically has a single mojo doing nothing special for now (it just
touches a file in target dir) and a simple test checking the plugin runs
correctly from within the project itself.
I do plan to provide the actual implementation in the next days, calling
the JunitRunner we have in the TestedBy core. This would basically do
something similar to what we already have in the
InstrumentationTestCase, building up the right bootclasspath and
installing the TestedBy instrumentation agent. It should then be just a
matter of routing the required parameters from the plugin configuration
to the core.
On this topic, as mentioned before, one of the key points is getting the
list of modified classes (tests and tested ones). I plan to act
similarly to what the maven compile plugin does, i.e. simply leveraging
file dates on the filesystem. I'm thinking about a SourceScanner that
select sources (java files, not classes, as I'd leave the class
compilation to the compiler plugin) last modified after the previous run
date of the testedby plugin (last run date need to be saved, of course,
by the plugin itself after each run).
The reason for doing this is that to me it doesn't seem to exist a way
of getting the list of last compiled classes from the compiler plugin,
but if you happen to have better idea than mine... ;-)
That's all for now
Cheers
Alessio