Eclipse:如何配置默认的单元测试目录

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4239277/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 15:22:32  来源:igfitidea点击:

Eclipse: How to configure a default unit test directory

javaeclipsejunitdefaultdirectory

提问by Thomas R.

I have two source folders, srcand test. The Quick JUnitplugin allows me to "Open Testing Pair" quickly. If there is no testing pair, it opens the default JUnit Test Wizard, but the default directory is always srcand and not test. Is there a way to configure a default unit test directory?

我有两个源文件夹,srctest. 在快速的JUnit插件,可以让我“开放测试对”快。如果没有测试对,它会打开默认的 JUnit 测试向导,但默认目录始终是srcand 和 not test。有没有办法配置默认的单元测试目录?

回答by Thomas R.

The question is already answered, sorry!

问题已经回答了,抱歉!

How to default the source folder for new JUnit tests in Eclipse?

如何在 Eclipse 中默认新 JUnit 测试的源文件夹?

MoreUnit works fine.

MoreUnit 工作正常。