在Eclipse中设置默认的TestNG启动配置 [英] Set up default TestNG launch configuration in Eclipse

查看:1061
本文介绍了在Eclipse中设置默认的TestNG启动配置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Eclipse中运行了不少TestNG测试,但是对于每一个,我需要传入相同的VM参数。有没有办法将它设置为默认值,所以我每次写新的测试时都不必输入。



谢谢!

$那么这是非常有争议的,可能最简单的解决方法是将它们全局设置(首选项 - > TestNG - >运行/调试 - > JVM args )。



否则,如果您为测试包创建运行配置,您还可以在其中设置。


I'm running quite a few TestNG tests in Eclipse, but for each one, I need to pass in the same VM arguments. Is there any way to set this to be default, so I don't have to enter it each time I write a new test?

Thanks!

解决方案

Well, that is quite problemmatic, probably the easiest workaround is to set them globally (Preferences -> TestNG -> Run/Debug -> JVM args).

Otherwise, if you create a run configuration for the test package, you can also set it there.

这篇关于在Eclipse中设置默认的TestNG启动配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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