In that case, it would be great if you could furnish the snippet of code in WidgetTest which is trying to read the. default package), your widget class cannot read it then there is something else wrong. You modify it's Classpath entry to add the project containing the. This should automatically create a Junit Run Configuration accessible at Run -> Run Configurations. Right click WidgetTest and select Run As -> Junit Test. When you are located in home, type this: cat. Simply cd to the home (I mean the user directory) - in any path if you just type cd and press enter, you can go to the home. Second, we need to check whether we have the.bashprofile or not. Then it's a problem of the test folder not being on the classpath and you may wanna try adding it manually like so. This is the path that needs to be defined in PATH environment. test the installation by using either the batch or the graphical TestRunner tool to run the tests that come with this release. I haven't touched java in a while, so I don't know if there's been major changes with junit 5. For example: set classpathclasspath INSTALLDIR\junit3\junit.jar 3. If you copy widget-test-config.xml to the src root can Widget class read it ? If Yes It uses currently out-of-date version os junit 4 (and doesn't address junit 5), so double-check you're installing junit 4. Is src/test a source folder for Eclipse ? If it is and you still get the problem, try out the following experiment : I was under the impression that as long as you have src/test/config/widget-test-config.xml inside what Eclipse considers to be a source folder, it should already be on the classpath.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |