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

查看:142
本文介绍了如何以编程方式运行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.

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

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.

推荐答案

有一个Eclipse插件构建JUnit,称为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天全站免登陆