使用 Pydev(Python 和 Eclipse)进行连续单元测试 [英] Continuous unit testing with Pydev (Python and Eclipse)

查看:39
本文介绍了使用 Pydev(Python 和 Eclipse)进行连续单元测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法将后台单元测试与 Pydev Eclipse 环境集成?

Is there a way to integrate background unit tests with the Pydev Eclipse environment?

我的单元测试运行良好,但我想根据源文件更改(例如使用鼻子)将它们集成到后台运行并将结果集成回 Eclipse(当测试失败时,我在想大红色 X带有控制台和跟踪日志视图).

My unit tests run well, but I would like to integrate them to run in the background based on source file changes (e.g. with nose) and to integrate the result back to Eclipse (I'm thinking big red X when tests fail with a console and trace log view).

不,旁边的命令提示符不算数.

No, a command prompt running nose on the side does not count.

我在开发 RoR 的时候已经有了这个 Eclipse 集成.

I have had this Eclipse integration when developing RoR stuff.

谢谢,

塔尔

查看新的 Pydev (1.6.4) http://pydev.org/manual_adv_pyunit.html

Check out the new Pydev (1.6.4) http://pydev.org/manual_adv_pyunit.html

推荐答案

此功能已添加到 PyDev 2.0.1 中,可以选择在 python 文件更改时重新启动上次测试运行中的测试,还有一个附加选项只重新运行错误——尽管如果没有发现错误,它会运行完整的测试套件,因为这个想法是你解决你的错误,当所有的都通过时,整个套件的最终启动完成(然后你可以继续到另一个任务).

This feature has been added to PyDev 2.0.1 with an option to relaunch the tests in the last test run whenever a python file change, with an additional option to rerun only the errors -- although it'll run the full test suite if no errors were found, as the idea is that you work through your errors and when all pass a final launch for the whole suite is done (then you can move on to another task).

当前的每晚构建包含此功能.

The current nightly build has this feature incorporated.

这篇关于使用 Pydev(Python 和 Eclipse)进行连续单元测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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