Does anyone have any advice on this? Surely there is a way to apply the testmatchpattern during site:site goal in maven 1.x. Are you expected to have _only_ test classes in your test source directory? (no helpers, no test fixtures etc). What are others doing here?
I'm trying to include the cobertura plugin in my site. Maybe running test:match manually, then running site:site with maven.test.skip=true would work? Seems a strange thing to have to do for an extremely common use case. I'm thinking I might move to maven 2 to get this working, although this seems rather extreme. I also can't see how Activations help me here in maven 2.x. I can see how each activation can set different properties, but that's not my problem. The problem here is that site:site doesn't use test:match, hence it ignores testmatchpattern completely. ? ________________________________ > From: [email protected] > To: [email protected] > Subject: RE: Using test:match during site creation > Date: Fri, 24 Apr 2009 09:24:21 -0400 > > > > > > > > > http://maven.apache.org/pom.html#Activation > > --so env-dev profile is activated by a jelly test when filename found which = > Foo >> > > > > env-dev > > > > > You must define the test case to run via -Dtestmatchpattern=pattern > Example: maven -Dtestmatchpattern=*Foo* test:match > > > > > > > > Martin > ______________________________________________ > Disclaimer and Confidentiality/Verzicht und Vertraulichkeitanmerkung / Note > de déni et de confidentialité > > This message is confidential. If you should not be the intended receiver, > then we ask politely to report. Each unauthorized forwarding or manufacturing > of a copy is inadmissible. This message serves only for the exchange of > information and has no legal binding effect. Due to the easy manipulation of > emails we cannot take responsibility over the the contents. > Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger > sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung > oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich > dem Austausch von Informationen und entfaltet keine rechtliche > Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen > wir keine Haftung fuer den Inhalt uebernehmen. > Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le > destinataire prévu, nous te demandons avec bonté que pour satisfaire informez > l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci > est interdite. Ce message sert à l'information seulement et n'aura pas > n'importe quel effet légalement obligatoire. Étant donné que les email > peuvent facilement être sujets à la manipulation, nous ne pouvons accepter > aucune responsabilité pour le contenu fourni. > > > > > > >> From: [email protected] >> To: [email protected] >> Subject: Using test:match during site creation >> Date: Fri, 24 Apr 2009 10:13:31 +0000 >> >> >> Hi, >> >> I'm trying to use the testmatchpattern and testnotmatchpattern to identify >> which test classes should be run. My patterns have been set in >> project.properties, and when I run "maven test:match" I now get the desired >> results. However when I run "maven site", the test run that occurs during >> site creation isn't using the testmatchpattern and testnotmatchpattern >> properties. >> >> Is there a way to ensure that the site goal uses the test:match goal (or is >> there another way in which testmatchpattern and testnotmatchpattern must be >> defined for "maven site" to use them)? >> >> Cheers, >> Joe >> >> _________________________________________________________________ >> Beyond Hotmail — see what else you can do with Windows Live. >> http://clk.atdmt.com/UKM/go/134665375/direct/01/ > > ________________________________ > Windows Live™ Hotmail®:…more than just e-mail. Check it out. _________________________________________________________________ Beyond Hotmail — see what else you can do with Windows Live. http://clk.atdmt.com/UKM/go/134665375/direct/01/ --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
