使用IntelliJ Idea进行持续测试 [英] Continuous testing with IntelliJ Idea
问题描述
我正在寻找一个IntelliJ IDEA插件,每次我更改代码时都会运行我的测试。我寻找这样的解决方案,我发现:
I'm looking for an IntelliJ IDEA plugin that would run my tests each time I change my code. I looked for such a solution and I found:
- Infinitest ,有效,但不方便,因为我需要将facet添加到每个模块,并为每个模块打开一个新的工具窗口(这意味着我有15个工具窗口)。
- Fireworks - 对我不起作用,也许它只适用于IDEA 14(在其回购我可以看到最近的更改是在2009年进行的)。 IntelliJ还报告它会抛出异常。
- Infinitest, which works, but is inconvenient because I need to add the facet to each module, and it opens a new tool window for each module (which means 15 tool windows for me).
- Fireworks - didn't work for me, maybe it just doesn't work with IDEA 14 (in its repo I can see that last changes were made in 2009). IntelliJ also reports that it throws exceptions.
有很多方法可以运行我的所有测试(包括为此编写一个简单的脚本) ),但我正在寻找一个足够智能的工具,首先重新运行失败的测试,这将理解模块的依赖性(因此在某些模块中更改之后,它将只运行相关模块的测试)。
There are lots of ways I could run all my tests (including writing a simple script for this), but I'm looking for a tool that would be smart enough to rerun failed tests first, and that would understand module dependencies (so after a change in some module it would run only tests of dependent modules).
我更喜欢免费期权,但如果以合理的价格支付,我也会接受。
I prefer free options, but if there's something paid for a reasonable price, I would accept it as well.
推荐答案
IntelliJ现在实际上在运行对话框中有一个切换自动测试
。只需运行一个运行配置,然后在运行对话框中选择切换自动测试
。
IntelliJ now actually has a Toggle auto-test
in the run dialog. Just run a run-configuration and then select Toggle auto-test
in the run dialog.
它不是那么聪明正如你所希望的那样。它只是在检测到变化时重新运行。
It's not as intelligent as you would have hoped. It just reruns when it detects changes.
这篇关于使用IntelliJ Idea进行持续测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!