【问题标题】:Run JUnit tests dynamically and view results in eclipse JUnit view动态运行 JUnit 测试并在 Eclipse JUnit 视图中查看结果
【发布时间】:2015-05-14 01:03:06
【问题描述】:

我正在以编程方式运行我的 JUnit 测试

JUnitCore junit = new JUnitCore();
Result result = junit.run(MyTest1.class, MyTest2.class);

有没有办法获得 result 并在 eclipse JUnit 查看器中显示它?

【问题讨论】:

    标签: java eclipse junit


    【解决方案1】:

    有人遇到类似情况,建议致电

    org.eclipse.ui.ide.IDE.openEditor(IWorkbenchPage, URI, String, 布尔值)

    Open JUnit View

    【讨论】:

      猜你喜欢
      • 2016-05-26
      • 2012-08-01
      • 1970-01-01
      • 1970-01-01
      • 2012-06-02
      • 1970-01-01
      • 1970-01-01
      • 2010-10-13
      • 2010-09-30
      相关资源
      最近更新 更多