Yes it is possible.
In fact, with Hybrid 6.1 and Eclispe Neon, I was able to run Junit tests from hybrid projects without any problems with the GUI.
To make tests work with Eclispe, you must make sure that
- All your projects are correctly configured in Eclipse (no errors)
- All dependencies are present in your workspace.
- All configured extensions of your localextensions.xml file are registered in the path to the Eclipse JUnit test configuration class.
Follow these steps to fix the last point.
- Open the Run menu
- Open the Run Configurations dialog box
- In the Run Configurations dialog box, select a test configuration
- Click the Classpath tab.
- Click the Add Projects button.
- In the Select Project dialog box, select all the extensions that you configured in the localextensions.xml file.
Other tips from hybrids
If your Spring configuration does not load when the Hybris platform starts, the Spring file is probably not part of the CLASSPATH test. This may be caused by a missing project on the classpath or not including the resource folder in the Eclipse classpath. Make sure your .classpath file contains the following line: <classpathentry exported="true" kind="lib" path="resources"/>
Regarding your specific problem
It would be great to post MCVE because the problem might be regarding your specific test. The above tips may help you. Try to run the test successfully from hybrids before trying on your own.
Resources and Further Reading
Testing at SAP Hybris Commerce - Check out the Eclipse section
Eclipse Workspace Errors - Complete Guide - Contains More Resources for Fixing Eclipse Errors
Hybrid Testweb Frontend interface - if you want to test your tests from this interface, consider initializing junit tenant to
source share