eclipse - Eclipse 2019-03 failing to run certain JUnit 4 tests from the Window but not Test suites or run configuration
问题描述
I have installed Eclipse 2019-03 from both the installer and tar ball. Certain JUnit test will run from a "run as" selection in the window and others will not. The ones that will not run will run:
- Test suite that includes the test class
- Run -> run configurations
- You can also run it from the JUnit view either from a test suite or run it again.
I have tried deleting then adding the code back in then which seems to work but then fails again in future.
I have tried re-installing eclipse and then adding the src and pom to the maven project and the issue is still there.
Any suggestions?
2019-06-28:
It seems there are also issues with this version of eclipse finding the main method in my Main class. Although removing or changing the code did resolve the issue there were a number of other issues croping up. I tried again to resolve this using both a new "run configuration" and run "Java Application". Both fail to find the class. This is a very simple Java 11 maven projet and I do not see why it is having these issues.
At this point I am going to roll back to a previous version of eclipse to see if it is having similar issues with this code.
2019-06-28 NEW:
Rolling back to photon resolved the issues with both running the code and the junit issues.
Version: Photon Release (4.8.0) Build id: 20180619-1200
解决方案
推荐阅读
- java - 序列化:忽略一个包含空值的元素的列表属性
- java - Javafx SceneBuilder Table getter Methode 给了我一个 NullPointerException
- rabbitmq - 来自 RabbitMQ 队列的 Mule ESB 多线程消费者
- javascript - 类中的jquery动画回调函数
- haskell - Testing with Hakyll's MonadMetadata
- javascript - 获取隐藏在div内的值输入
- vba - Microsoft Word VBA pos 更改?
- message-queue - 每个租户的消息队列
- sql-server - TSQL - 基于重量的多个位置的随机获胜者
- r - 如何计算多个因素和水平的平均值?