简体   繁体   English

在Eclipse中运行坚果单元测试的配置

[英]Configuration for running nutch unit tests in eclipse

I have nutch set up for eclipse and can run and debug to my hearts content. 我已经为日食设置了小节,可以运行并调试我的内心内容。 I can compile from eclipse or the command line, using ant. 我可以使用ant从eclipse或命令行进行编译。 I can test all modules individually. 我可以单独测试所有模块。 However, when running the generic nutch download tests from the command line - eg ant test, I get a few failures in some of the (unmodified) modules. 但是,当从命令行运行通用的nutch下载测试时(例如ant test),我在某些(未修改的)模块中遇到了一些失败。

My question: how do I run the unit tests from within eclipse so I can see where the tests are failing? 我的问题:如何在eclipse中运行单元测试,以便查看失败的地方? Thanks for your help! 谢谢你的帮助!

If you have a unit test in your project, you can right click and 'Run-as'. 如果您的项目中有单元测试,则可以右键单击“运行方式”。 Select 'JUnit test' (or other test framework). 选择“ JUnit测试”(或其他测试框架)。 This should initialize the unit test module in eclipse. 这应该在eclipse中初始化单元测试模块。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM