Problems occurred Launching JUnit Tests

Asked By 0 points N/A Posted on -
qa-featured

Hello,

I am using Ubuntu Operating System and installed JUnit Tests on my computer but I got an error message on the screen when I tried to launch this program. The error shows that the configuration does not exist. How can I avoid this problem as soon as possible? Can I fix this issue? Thanks in advance.

Problems Launching JUnit Tests

Problems Launching JUnit Tests

The input type of the launch configuration does not exist.

SHARE
Answered By 0 points N/A #175928

Problems occurred Launching JUnit Tests

qa-featured
Hi Shane I believe that you are trying to test classes in Eclipse IDE. You're having this error because the folder is not created in the "source folder"
You can see if your test folder created as a "source folder" or not by comparing the icon of that folder, it should be similar to src folder.
Now that you're having that kind of error it means that the test folder is not a "source folder".
So to fix this problem, right click the text folder then select "Build Path" then  select the "Use as source folder"
After doing that the test folder icon must change to src icon the launch the Junit Test again
If the same error still appear I advise you to un-stall and reinstall the software again because there is a possibility that you did not install the program completely.
Follow these instructions to properly install the JUnit:
Step 1: add the JUnit-4.6.jar (or the JUnit you already have) to the "Classpath"
Step 2: To make sure that you install successfully the Junit, test it by launching the org.junit.runner.JUnitCore org.junit.tests.AllTests
 

Login/Register to Answer

Related Questions