Help with MageTests Project
Moderators: North, BetaSteward, noxx, jeffwadsworth, JayDi, TheElk801, LevelX, CCGHQ Admins
Help with MageTests Project
by mjpirez » 29 Jun 2016, 20:48
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.
-------------------------------------------------------
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.
- mjpirez
- Posts: 4
- Joined: 15 Jun 2016, 18:20
- Has thanked: 0 time
- Been thanked: 0 time
Re: Help with MageTests Project
by escplan9 » 30 Jun 2016, 15:33
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.
http://stackoverflow.com/questions/2464 ... rom-the-un
With a suggested additional option that may help.
Re: Help with MageTests Project
by LevelX » 04 Jul 2016, 20:55
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.
Because you have to raise the default memory used from the maven process.
-
LevelX - DEVELOPER
- Posts: 1677
- Joined: 08 Dec 2011, 15:08
- Has thanked: 174 times
- Been thanked: 374 times
Re: Help with MageTests Project
by mjpirez » 15 Jul 2016, 17:37
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.
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.
- mjpirez
- Posts: 4
- Joined: 15 Jun 2016, 18:20
- Has thanked: 0 time
- Been thanked: 0 time
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 6 guests