Finally, I found some time to write it down for the FlexMojos FAQ ;) https://docs.sonatype.org/display/FLEXMOJOS/Running+unit+tests#Runningunittests-debuggerversionmac https://docs.sonatype.org/display/FLEXMOJOS/Running+unit+tests#Runningunittests-m2emac
Patrick On 9 Jun., 10:49, "[email protected]" <[email protected]> wrote: > Nop, > > your solution is fine just need to be followed precisely: > * if there are spaces in PATH no need to \(escape) them in eclipse, > nor quotes > * if Flash Payer Debugger is used, need to specify - > Dflex.flashPlayer.command=Flash Player Debbuger (name of executable is > not the same in the debug - no debug version) > > Link for setting-environment-variables in mac osx just help me to > understand why test passed from command line but no when I run them in > eclipse. > > After playing around with the techniques in that link (no success), I > did remove all of them, > and apply your solution and it worked. I did apply in dev team's > eclipse and it worked out (just the need of appending Debugger when > debug version used) > > I cannot find in the wiki or FAQ where it has been added, will it be > added in Running+unit+tests or in the FAQ? > > Thanks again for posting the way, from now, the dev team will 'no > need' to use console for maven tasks (if m2eclipse 0.13 is more > stable with flex projects that it was 0.12) > > Nico > > On 7 jun, 22:17, Patrick Heinzelmann <[email protected]> > wrote: > > > > > > > > > Can you send me your solution, so that I can add yours together with > > mine to the FAQ. > > > Thanks > > Patrick > > > On 30 Mai, 22:09, Simon Morvan <[email protected]> wrote: > > > > You could also initialize the ${flashPlayer.command} parameter in your > > > settings.xml. It's what we're doing on our CI server. > > > > Le 24/05/2011 18:27, Patrick Heinzelmann a écrit : > > > > > If you follow this > > > > guidehttps://docs.sonatype.org/display/FLEXMOJOS/Running+unit+tests, > > > > every works as expected, when running the flexunit tests from the > > > > command: Flash Player will launched to run the tests. > > > > > I've set the location by adding following line to ~/.profile: export > > > > PATH=/Applications/Flash\ Player\ Debugger.app/Contents/MacOS:${PATH} > > > > > But when I'm trying to run it from Eclipse using the m2e plugin, m2e > > > > can't find the Flash Player. These happens, because Eclipse will not > > > > orgin version of the PATH and not the extended of the .profile File. > > > > > Finally, I found a simple solution for the problem, when you want to > > > > running unit tests from m2e on a Mac. > > > > > You have to add the Flash Player location as environment variable in > > > > the launch configuration of the Maven Build (m2e) in Eclipse. > > > > > Eclipse->Run->Run Configurations->Select a Maven Build (left column)- > > > >> Environment->New > > > > Variable: PATH > > > > Value: /Applications/Flash\ Player.app/Contents/MacOS (if the Flash > > > > Player is located below "/Applications") > > > > > And select the RadioButton: Append environment to native environment > > > > > Done! Now, the m2e plugin can launch the Flash Player to run the > > > > flexunit tests. > > > > > Cheers > > > > Patrick -- 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 http://flexmojos.sonatype.org/
