From cb5531539ed593787697e732afb3194e8f098512 Mon Sep 17 00:00:00 2001 From: Jorge B Date: Wed, 19 Feb 2025 22:54:45 -0800 Subject: [PATCH 1/2] Update README.md to include java instructions --- README.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/README.md b/README.md index aa90d3a..6def750 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,7 @@ Branch (partial) coverage support: | C# | :x: | | Dart | :heavy_check_mark: (untested) | | Go | :x: | +| Java | :heavy_check_mark: | | Javascript/Typescript | :heavy_check_mark: | | Julia | :heavy_check_mark: (untested) | | Python | :heavy_check_mark: | @@ -89,6 +90,25 @@ Using lazyvim: }, ``` +### Using Java +In order to use the java coverage file, please ensure you include "nvim-neotest/neotest" as a dependency +i.e +``` + { + "andythigpen/nvim-coverage", + dependencies = { + "nvim-neotest/neotest". + }, + version = "*", + config = function() + require("coverage").setup({ + auto_reload = true, + }) + end, + }, +``` + + ## Configuration See [docs](https://github.com/andythigpen/nvim-coverage/blob/main/doc/nvim-coverage.txt) for more info. From 9771112edad7d727d06fc6195c05ec6f5d3d1951 Mon Sep 17 00:00:00 2001 From: Jorge B Date: Wed, 19 Feb 2025 22:57:27 -0800 Subject: [PATCH 2/2] Update with hava instructions --- doc/nvim-coverage.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/doc/nvim-coverage.txt b/doc/nvim-coverage.txt index 933ce26..bb28148 100644 --- a/doc/nvim-coverage.txt +++ b/doc/nvim-coverage.txt @@ -165,6 +165,15 @@ Go supports the following configuration options: coverage_file: ~ File that the plugin will try to read coverage from. Defaults to: `"coverage.out"` + *nvim-coverage-java* +Go supports the following configuration options: + + coverage_file: ~ + File that the plugin will try to read coverage from. + Defaults to: `"build/reports/jacoco/test/jacocoTestReport.xml"` + dir_prefix: ~ + Java files directory prefix. + Defaults to: `"src/main/java"` *nvim-coverage-javascript* *nvim-coverage-typescript*