如何以编程方式运行 Eclipse 启动配置? [英] How to run Eclipse launch configurations programmatically?

查看:30
本文介绍了如何以编程方式运行 Eclipse 启动配置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现很难很好地表达这个问题,因为有很多通用术语(运行、配置、启动等).这是:

I'm finding it difficult to phrase this question well, as there are quite a few generic terms (run, configuration, launch, etc.). Here goes:

您可以中保存运行配置.launch 文件.(在运行配置"对话框的通用"选项卡下,另存为共享文件.

You can save run configurations in a .launch file. (in the Run Configuration Dialog, under the Common tab, Save as a shared file.

我们将这些签入到 SVN.开发人员可以传递它们,这有助于让新开发人员更快地运行工作应用程序.

We check these in to SVN. The developers can pass them around, and it helps getting new devs running a working application quicker.

我想将这些作为我们构建的一部分进行检查,并使用它们以编程方式运行应用程序、测试等,而无需启动整个 IDE.

I'd like to check these out as part of our build and use them to programatically run the application, the tests, etc, without spinning up the whole IDE.

在 UI 之外运行 .launch 文件的最佳方式是什么?

What would be the best way to run a .launch file outside of the UI?

编辑:我正在尝试统一在构建服务器和 IDE 上运行的测试.我不特别想放弃集成调试,比如用ant脚本来运行测试.

Edit: I am trying to unify the tests run on the build server and the IDE. I do not particularly want to give up integrated debugging, which would be the case with an ant script to run the tests .

对于使用多个包进行集成测试,或对整个包进行单元测试(您想模拟扩展),这可能更像是一个问题.

This is probably more a problem for integration testing with multiple bundles, or unit testing a whole bundle, where you'd like to mock up extensions.

推荐答案

有一个基于 JUnit 的 Eclipse 插件,称为 TPTP.它提供了一个自动化客户端,可用于在没有 gui 的情况下从 Eclipse 启动测试.也许有帮助

there is an eclipse plugin built over JUnit, called TPTP. It provides an automation client which can be used to launch the test from eclipse with no gui. maybe it helps

这篇关于如何以编程方式运行 Eclipse 启动配置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆