JaCoCo与IntelliJ [英] JaCoCo with IntelliJ

查看:81
本文介绍了JaCoCo与IntelliJ的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以这个问题可能不是很具体,但我还是要问.

So this question might not be really specific, but i'm asking it anyway.

我正在尝试将JaCoCo与IntelliJ一起使用以收集有关单元测试的覆盖率报告.但是,我没有任何经验可以进行设置.

I'm trying to use JaCoCo with IntelliJ to gather coverage reports on unit tests. However, i don't have any experience whatsoever to set this up.

在Netbeans中,您只需要安装JaCoCo插件并选择进行覆盖测试.这在IntelliJ中如何工作?

In Netbeans you just have to install the JaCoCo plugin and select to test with coverage. How does this work in IntelliJ?

我已经糊涂了很长时间没有成功.如果有人有一个很好的教程来进行设置,我将非常感谢!

I have googeled for quite a while without success. If someone has a good tutorial to set this up, i'd really appreciate it!

推荐答案

如果您具有IntelliJ的最新版本,则无需执行任何操作.只需选择在测试套件或项目的运行配置中将JaCoCo用作覆盖率工具,它将使用其内置的JaCoCo版本.

You don't need to do anything, if you have a recent version of IntelliJ. Just select to use JaCoCo as the coverage tool in the run configuration for your test suite or project and it will use its built-in JaCoCo version.

这篇关于JaCoCo与IntelliJ的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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