Error Trying to Run JUnit Tests [message #1413530] |
Thu, 28 August 2014 19:38 |
|
Good Afternoon everyone. I am just starting out with JUnit testing for an application we are developing and have been following some online training.
When I created a basic unit test and click on run, I am getting the following error:
An internal error occurred during: "Launching HelloJUnit".
java.lang.NullPointerException
I am not sure what the issue could be and I was looking to see if there were others that have had this issue, to see what they did to solve it.
Also not sure if I have the right versions installed to use JUnit.
Eclipse.org - Eclipse Platform - Version 4.2.1.v20130118
Eclipse.org - Eclipse RCP - Version 4.2.2.v20130129
Eclipse.org - Help System Base - Version 1.4.1.v20120912
Android Developer Tools - ADT Package - Version 23.0.2.1259578
Matthew Clark
Software Engineer
Automation Engineer
|
|
|
|
Re: Error Trying to Run JUnit Tests [message #1413811 is a reply to message #1413683] |
Fri, 29 August 2014 13:29 |
|
I have created a project in Eclipse and have added in some tests. When I attempt to run/debug the tests using Run As -> JUnit tests, I receive an error that states :
An internal error occurred during: "Launching HelloJUnit".
java.lang.NullPointerException
The HelloJUnit is just a sample test that I was working on in a training.
I have tried to include the different versions/settings that I could find in Eclipse that might help someone figure out if I don't have something configured properly. It is attempting to use JUnit 4, JRS System Library [JavaSE-1.7]
Matthew Clark
Software Engineer
Automation Engineer
|
|
|
Re: Error Trying to Run JUnit Tests [message #1413952 is a reply to message #1413530] |
Fri, 29 August 2014 21:19 |
|
On 08/28/2014 01:52 PM, Matthew Clark wrote:
> Good Afternoon everyone. I am just starting out with JUnit testing for
> an application we are developing and have been following some online
> training.
> When I created a basic unit test and click on run, I am getting the
> following error:
>
> An internal error occurred during: "Launching HelloJUnit".
> java.lang.NullPointerException
>
> I am not sure what the issue could be and I was looking to see if there
> were others that have had this issue, to see what they did to solve it.
>
> Also not sure if I have the right versions installed to use JUnit.
> Eclipse.org - Eclipse Platform - Version 4.2.1.v20130118
> Eclipse.org - Eclipse RCP - Version 4.2.2.v20130129
> Eclipse.org - Help System Base - Version 1.4.1.v20120912
>
> Android Developer Tools - ADT Package - Version 23.0.2.1259578
It would be easier to guess what went wrong with a bit more of the NPE
stack trace.
|
|
|
Re: Error Trying to Run JUnit Tests [message #1415403 is a reply to message #1413952] |
Tue, 02 September 2014 17:56 |
|
I believe that I have figured out my issue. I was using a workspace that was incompatible with what I was trying to do. Made a few changes and now I am able to run the unit tests again.
Matthew Clark
Software Engineer
Automation Engineer
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03308 seconds