Page 1 of 1

Help with MageTests Project

PostPosted: 29 Jun 2016, 20:48
by mjpirez
I'm trying to create/run tests for cards but keep getting Out of Memory errors:

-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.mage.test.cards.mana.ManaSourceTest
INFO [2016-06-29 15:29 [32:310]] MageTestPlayerBase[main]: Loading game type: mage.game.TwoPlayerMatch
INFO [2016-06-29 15:29 [32:320]] MageTestPlayerBase[main]: Loading plugin: mage.game.TwoPlayerMatch
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 10.708 sec
org.apache.maven.surefire.util.SurefireReflectionException: java.lang.reflect.InvocationTargetException; nested exception is java.lang.reflect.InvocationTargetException: null
Exception in thread "main"
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "main"

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time: 14.008s
Finished at: Wed Jun 29 15:29:43 BRT 2016
Final Memory: 35M/1963M
------------------------------------------------------------------------


As you can see in Final Memory report, already adjusted the project properties to up the memory to no use.
Working on a 16Gb RAM machine.

I am right clicking the class then run test.

Thanks.

Re: Help with MageTests Project

PostPosted: 30 Jun 2016, 15:33
by escplan9
Not sure, try googling the message (Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "main") and I see some StackOverflow posts like this:
http://stackoverflow.com/questions/2464 ... rom-the-un

With a suggested additional option that may help.

Re: Help with MageTests Project

PostPosted: 04 Jul 2016, 20:55
by LevelX
Did you set the memory as written in step 5 of the "Steps to retrieve, build and run XMage" from https://github.com/magefree/mage/wiki/D ... ng-Started.

Because you have to raise the default memory used from the maven process.

Re: Help with MageTests Project

PostPosted: 15 Jul 2016, 17:37
by mjpirez
I've tried both suggestions before post here in the forum.
I already set the memory up to no use.

Never developed in Netbeans so I'm a lit bit confused.

Thanks for the input though.