Integration tests are done inside the test-harness project.... http://svn.sonatype.org/flexmojos/trunk/flexmojos-testing/flexmojos-test-harness/
If you could put it there is better then hacking FM.... VELO On 29 dez, 08:15, "christoph.pickl" <[email protected]> wrote: > > Not sure, but are you trying to run integration tests for your > > flashbuilder mojo? > > yes, more like integration tests than unit tests > as i like to test the mojo including the velocity stuff. > but just recently i've read (something by some plexus guys i think) > that a component (a.k.a. mojo) in component oriented programming > is a unit itself, so "unit test" would be the correct term as > you can not split the component in smaller parts... > but that's only terminology blah blah in my opinion :) > > > > > so my question is now, how we should proceed? any considerations > > > upfront? > > > @velo: although it might be a bit too early (as i already mentioned > > > there are still some dirty hacks), do you want to have a patch which > > > includes unit testing support for (the flexbuilder) mojos? > > > Well, I would prefer to see a patch before dirty hack and another > > after the hack =D > > So I could know how much dirty is it. > > okay, yesterday i resolved a lot of these hacks. > also some problems related to eclipse vs maven compilation, cost me +8 > hours :( > > to summarize, things i've done so far to get testing-harness running > in flexmojos 3.5: > * added dependency maven-plugin-testing-harness version 1.2 > * added dependency plexus-utils version 1.5.1 (resolve > ClassNotFoundException for XmlStreamReader) > * added dependency plexus-container-default version 1.0-alpha-8 > (downgrade version 1.0-beta-3.0.6 as otherwise would have crashed > plexus container thingy) > * added dependency xstream version 1.3.1 (just to check generated xml > files) > * added plugin descriptor src/test/resources/META-INF/maven/plugin.xml > because testing harness needs them (this is somehow ugly, as we -not > necessarily- need to recreate this file everytime something changes in > the mojos) > * added another configuration option "shouldThrowBuildException" > suppressing exception thrown while checking for mainApplication file > existence > > if it's okay for you, i will send a patch and everything else with the > FLEXMOJOS-188 issue "Support flashbuilder metadata generation", > alright?! so testing and flashbuilder support will go hand in hand... > > ~christoph -- You received this message because you are subscribed to the Google Groups "Flex Mojos" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/flex-mojos?hl=en?hl=en http://blog.flex-mojos.info/
