Thomas, please keep on-list so that others may benefit/help you when I get too busy.
AFAIK java will start a shell to launch any external process. you can configure the surefire plugin to not fork (see the surefire pages to find out how) but you really want forkMode of at least once... always will be a performance hit and is really for those cases where you are testing code with singletons that were not designed well for testability. forkMode none will mean that your tests will not have a clean environment (e.g. system properties will be inherited from maven because it's the same JVM) and additionally your tests may break maven if they do strange things. -Stephen On 30 June 2010 10:19, Thomas Porschberg <[email protected]> wrote: > Hi Stephen, > > thank you for your response but I'm still confused. > Does surefire start a shell to fork? > > And how can I configure surefire not to fork? > > Regards, > Thomas > > Am Wed, 30 Jun 2010 09:53:52 +0100 > schrieb Stephen Connolly <[email protected]>: > > > surefire forks a java process (unless you set forkmode to none) > > > > On 30 June 2010 09:06, Thomas Porschberg <[email protected]> wrote: > > > > > Hi, > > > > > > after my trouble with the surefire plugin my test is running > > > successful now. > > > > > > But I wonder about some output from shell functions I have defined > > > in my environment, like: > > > > > > /bin/sh: getReturnCode: line 0: unexpected EOF while looking for > > > matching ``' > > > /bin/sh: getReturnCode: line 5: syntax error: unexpected end offile > > > /bin/sh: error importing function definition for`getReturnCode' > > > /bin/sh: initApplication: line 1: syntax error:unexpected end of > > > file > > > > > > Why does "mvn test" execute the shell functions? > > > > > > Regards > > > Thomas > > > > > > -- > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [email protected] > > > For additional commands, e-mail: [email protected] > > > > > > > > > > -- > _____________________________________________________ > > Thomas Porschberg > Otto Group · GroupTechnologyPartner - Dresden (GTP) > Softwareentwickler · Lokale Logistik · FI-IS-LL > > GroupTechnologyPartner - Dresden GmbH · Freiberger Straße 35 · 01067 > Dresden Telefon +49 (0) 351 497 23 158 · Fax +49 (0) 351 497 23 119 > [email protected] · www.ottogroup.com <http://www.ottogroup.com/> > _____________________________________________________ > AG Dresden, HRB 2475 > Geschäftsführer: Dr. Thomas Tribius, Martin Mildner >
