View unanswered posts | View active topics It is currently Thu May 23, 2013 11:08 am



Reply to topic  [ 2 posts ] 
 Running JUnit Tests/No logs 
Author Message

Joined: Thu Jun 14, 2012 2:40 pm
Posts: 2
Hey,

I tried to run a JUnit (as defined in the online guide) localy and remote on the following setup: Java 7, JUnit 4.10, Ubuntu 64 Bi.t Two of us checked the setup, but it is exactly as defined in the online guide. Also running the JUnit test on the command line worked fine. As there is no stack trace or anything else I can not find the reason.

Can I somehow get the command which is used by XStudio to run the Unit Test? Is there any possibility to turn on logging to find out the problem? By the way, I can not see Settings -> Control Panel...


Thanks in advance.

ben.


Thu Jun 14, 2012 3:01 pm
Profile

Joined: Thu Jun 14, 2012 2:40 pm
Posts: 2
By running XStudio as Linux fat client got the logs:

------------------------------------------------------
'/usr/lib/jvm/jdk1.7.0_01/bin/java' -classpath '/opt/junit/junit-4.10.jar::/opt/junit' org.junit.runner.JUnitCore org.junit.samples.money.MoneyTest

from directory [/opt/junit]
using environment [{}])
------------------------------------------------------

exception while running the process: Cannot run program "'/usr/lib/jvm/jdk1.7.0_01/bin/java'" (in directory "/opt/junit"): java.io.IOException: error=2, No such file or directory

The same call at the command line brings the result:

JUnit version 4.10
.......................
Time: 0.046

OK (23 tests)


Fri Jun 15, 2012 12:30 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software for PTF.