gpt4 book ai didi

eclipse - 在 PyDev + Eclipse 中运行当前项目中的所有单元测试的键盘快捷键是什么?

转载 作者:行者123 更新时间:2023-12-04 10:32:06 25 4
gpt4 key购买 nike

我知道 Ctrl + F9 运行单个文件。

如何运行它们?

如果没有这样的东西,如何绑定(bind)一个键盘快捷键?

最佳答案

为什么不:

  • 在 ant 脚本中定义一组测试或目标(如 this one,在文章底部),
    - 然后关联启动配置(ant 脚本的外部配置)?

  • 然后您可以使用 shortcut to that launch configuration (如 this thread )。
    一种解决方案是 always launch the last application (F11 或 Ctrl+F11 )
    <target name="tests" depends="compile">
    <py-test pythonpath="${src.dir}" dir=".">
    <fileset dir="${src.dir}">
    <include name="**/*Test.py"/>
    </fileset>
    </py-test>
    </target>

    注意:还有其他方法可以将单元测试与 pydev 集成,如 SO 问题 Continuous unit testing with Pydev (Python and Eclipse) 所示。

    关于eclipse - 在 PyDev + Eclipse 中运行当前项目中的所有单元测试的键盘快捷键是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2173212/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com