Giter Site home page Giter Site logo

neotest-java's People

Contributors

andy-bell101 avatar codeprefect avatar guillaumelamanda avatar steffsommer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

neotest-java's Issues

Feedback

Hi 👋

I saw this project here, and @andy-bell101 was asking for feedback.

I sporadically work on a maven project with JUnit tests, so I try it.

For now, when I try to open the summary I get this error:

   Error  09:12:37 notify.error lazy.nvim Failed to run `config` for neotest

...l/share/nvim/lazy/neotest-java/lua/neotest-java/init.lua:300: attempt to call global 'is_callable' (a nil value)

# stacktrace:
  - /neotest-java/lua/neotest-java/init.lua:300 _in_ **setter**
  - /neotest-java/lua/neotest-java/init.lua:311
  - ~/.config/nvim/lua/plugins/testing.lua:61 _in_ **config**

And when I try to run a test, I have the following error:

   Error  09:15:27 msg_show.emsg E5108: Error executing lua: ...im/lazy/LazyVim/lua/lazyvim/plugins/extras/test/core.lua:81: attempt to index field 'run' (a nil value)
stack traceback:
	...im/lazy/LazyVim/lua/lazyvim/plugins/extras/test/core.lua:81: in function <...im/lazy/LazyVim/lua/lazyvim/plugins/extras/test/core.lua:81>

The project use maven.

Thanks for the initiative with this project, I hope this feedback will help

Issue with passed tests indicators

There is some issue with the results interpreted by neotest from the neotest-java adapter.
Whenever the test has a non-default package, e.g. com.example.demo.service.TransferServiceTest the results contain that fqcn (fully qualified class name) (which looks very logical), but the neotest adds new entries to the result (and fails them), which contain only the classname + method:

results from neotest-java:

{
  ["com.example.demo.service.TransferServiceTest.moneyTransferHappyFlow"] = {
    output = "/var/folders/3y/fyv5szf13b39s5jbsk_zkq980000gn/T/nvim.anton/ckWC41/0",
    status = "passed"
  }

results after neotest processes the above table:

{
  ["TransferServiceTest.moneyTransferHappyFlow"] = {
    errors = {},
    output = "/var/folders/3y/fyv5szf13b39s5jbsk_zkq980000gn/T/nvim.anton/ckWC41/0",
    status = "failed"
  },
  ["com.example.demo.service.TransferServiceTest.moneyTransferHappyFlow"] = {
    output = "/var/folders/3y/fyv5szf13b39s5jbsk_zkq980000gn/T/nvim.anton/ckWC41/0",
    status = "passed"
  }
}

It seems that neotest is looking at some paths and does not respect packages.
The end result is that the test is marked as failed, even though it has passed.

As a workaround, I have modified neotest-java to use the simple class name + method name format.
The only drawback I see from this is if I have the same TransferServiceTest test in 2 different packages, the test results will be wrong (something I can live with, since I rarely (if ever) need to have the absolute same test+methods in two different packages). e.g., if I copy com.example.demo.service.TransferServiceTest to com.example.demo.model.TransferServiceTest (and fail the test method in that new test class) the results will be wrong.

Here is the modification I have made locally with which things are working fine:
in buf 8: "~/.local/share/nvim/lazy/neotest-java/lua/neotest-java/init.lua" 328 lines --82%--

        local simple_name = testcase._attr.classname:match("%.([^%.]+)$")
        if testcase.failure then
          results[simple_name .. "." .. method_name] = {
            status = "failed",
            short = testcase.failure[1],
          }
        else
          results[simple_name .. "." .. method_name] = {
            status = "passed",
          }
        end

gradlew/gradlew.bat should be respected

Currently the adapter relies on the gradle installation available in PATH.
Since Gradle has quite a few breaking changes between major releases, their recommendation is to run the Gradle Wrapper using the (gradlew/gradlew.bat) scripts.

the neotest-java adapter should look for those scripts in the root directory and execute the one appropriate for the OS.

Support for parameterized tests

Add support for parameterized JUnit tests. Currently waiting for #gradle/gradle#23324 to be addressed so the JUnit XML contains the method names of the test that can be associated back to the test case.

Creating individual sub-entries beneath a test would be extremely difficult. I don't think Gradle has a means of showing just the tests that are collected without
running them. So I would have to manually parse the parameterized tests to generate the test cases. I think a better solution would be to somehow roll up the results from the parameterized test into a single result and show them all under the same test. That seems like it would be pretty achievable.

Gradle Kotlin build files (build.gradle.kts) not recognized to determine project root

Hi,

thank you very much for providing this adapter! I am currently re-evaluating whether I can use Neovim at work and this adapter could prove very beneficial.

I created a empty Spring Project using Spring Initializr with Gradle and Kotlin Build scripts and noticed that the adapter only looks for a build.gradle, but not a build.gradle.kts (Kotlin) file. The kts extension should be supported, because it is the new default in modern gradle development.

Here is the Reproducer-repo. It contains a clean project from Spring initializr with the settings i mentioned above.

Edit: Provided a PR: #9

Consider sharing the plugin on neovim's subreddit

Hello,

Thanks for the plugin! Just tested on one of my projects (with gradle) and it works pretty nicely. I don't know how early stage do you consider the plugin's current state, but at some point, I think you should make a post on neovim's subreddit to attract more testers / users.

Error, no tests found on Windows

error/bug explanation

When executing tests on Windows in a minimal project

  • Gradle 8.2.1
  • build.gradle.kts build file

Neotest says there are no tests available with the following error message:

[...]
What went wrong:
Execution failed for task ':test'.
No tests found for given includes: ['com.steff.demo.DemoApplicationTests.*'](--tests filter)
[...]

The include Filter is correct, so there is nothing suspicious. Then I looked at the Neotest log and the generated command looks also correct:

[...]
INFO | 2023-08-22T11:09:01Z+0200 | ...pack\packer\start\neotest-java/lua/neotest-java/init.lua:239 | Test spec = {
command = "gradle test --tests 'com.steff.demo.DemoApplicationTests.*'",
context = {},
cwd = "C:\Users\Steff\code\java_gradle_demo"
}
[...]

cwd and command are both correct. I can even execute the command in PowerShell and it works.
Not sure if this is a problem from your adapter or from Neotest.

Reproducer Repo, but only works when this issue is resolved, because it contains a build.gradle.kts file.

full log

INFO | 2023-08-22T11:09:00Z+0200 | ...pack\packer\start\neotest/lua/neotest/lib/subprocess.lua:33 | Starting child process
INFO | 2023-08-22T11:09:00Z+0200 | ...pack\packer\start\neotest/lua/neotest/lib/subprocess.lua:36 | Parent address: localhost:50386
INFO | 2023-08-22T11:09:00Z+0200 | ...pack\packer\start\neotest/lua/neotest/lib/subprocess.lua:42 | Starting child process with command: C:\Program Files\Neovim\bin\nvim.exe --embed --headless
INFO | 2023-08-22T11:09:01Z+0200 | ...te\pack\packer\start\neotest/lua/neotest/config/init.lua:362 | Configuration complete
DEBUG | 2023-08-22T11:09:01Z+0200 | ...te\pack\packer\start\neotest/lua/neotest/config/init.lua:363 | User config {
adapters = { {
build_position = <function 1>,
build_spec = <function 2>,
discover_positions = <function 3>,
is_test_file = <function 4>,
name = "neotest-java",
position_id = <function 5>,
results = <function 6>,
root = <function 7>,
= {
__call = <function 8>
}
} },
benchmark = {
enabled = true
},
consumers = {},
default_strategy = "integrated",
diagnostic = {
enabled = true,
severity = 1
},
discovery = {
concurrent = 20,
enabled = true
},
floating = {
border = "rounded",
max_height = 0.6,
max_width = 0.6,
options = {}
},
highlights = {
adapter_name = "NeotestAdapterName",
border = "NeotestBorder",
dir = "NeotestDir",
expand_marker = "NeotestExpandMarker",
failed = "NeotestFailed",
file = "NeotestFile",
focused = "NeotestFocused",
indent = "NeotestIndent",
marked = "NeotestMarked",
namespace = "NeotestNamespace",
passed = "NeotestPassed",
running = "NeotestRunning",
select_win = "NeotestWinSelect",
skipped = "NeotestSkipped",
target = "NeotestTarget",
test = "NeotestTest",
unknown = "NeotestUnknown",
watching = "NeotestWatching"
},
icons = {
child_indent = "│",
child_prefix = "├",
collapsed = "─",
expanded = "╮",
failed = "",
final_child_indent = " ",
final_child_prefix = "╰",
non_collapsible = "─",
passed = "",
running = "",
running_animated = { "/", "|", "\", "-", "/", "|", "\", "-" },
skipped = "",
unknown = "",
watching = ""
},
jump = {
enabled = true
},
log_level = 0,
output = {
enabled = true,
open_on_run = "short"
},
output_panel = {
enabled = true,
open = "botright split | resize 15"
},
projects = {
= {
index = <function 9>
}
},
quickfix = {
enabled = true,
open = false
},
run = {
enabled = true
},
running = {
concurrent = true
},
state = {
enabled = true
},
status = {
enabled = true,
signs = true,
virtual_text = false
},
strategies = {
integrated = {
height = 40,
width = 120
}
},
summary = {
animated = true,
enabled = true,
expand_errors = true,
follow = true,
mappings = {
attach = "a",
clear_marked = "M",
clear_target = "T",
debug = "d",
debug_marked = "D",
expand = { "", "<2-LeftMouse>" },
expand_all = "e",
jumpto = "i",
mark = "m",
next_failed = "J",
output = "o",
prev_failed = "K",
run = "r",
run_marked = "R",
short = "O",
stop = "u",
target = "t",
watch = "w"
},
open = "botright vsplit | vertical resize 50"
},
watch = {
enabled = true,
symbol_queries = {
elixir = <function 10>,
lua = ' ;query\n ;Captures module names in require calls\n (function_call\n name: ((identifier) @function (#eq? @function "require"))\n arguments: (arguments (string) @symbol))\n ',
python = " ;query\n ;Captures imports and modules they're imported from\n (import_from_statement (
(identifier) @symbol))\n (import_statement (
(identifier) @symbol))\n "
}
}
}
INFO | 2023-08-22T11:09:01Z+0200 | ...pack\packer\start\neotest/lua/neotest/lib/subprocess.lua:84 | CHILD | Connected to parent instance
INFO | 2023-08-22T11:09:01Z+0200 | ...te\pack\packer\start\neotest/lua/neotest/client/init.lua:380 | Initialising client
INFO | 2023-08-22T11:09:01Z+0200 | ...\packer\start\neotest/lua/neotest/client/events/init.lua:48 | Emitting starting event
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\packer\start\neotest/lua/neotest/client/events/init.lua:50 | Calling listener summary for event starting
INFO | 2023-08-22T11:09:01Z+0200 | ...\pack\packer\start\neotest/lua/neotest/adapters/init.lua:18 | Found 1 adapters for directory C:\Users\Steff\code\java_gradle_demo
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\pack\packer\start\neotest/lua/neotest/adapters/init.lua:19 | Adapters: { {
adapter = {
build_position = <function 1>,
build_spec = <function 2>,
discover_positions = <function 3>,
is_test_file = <function 4>,
name = "neotest-java",
position_id = <function 5>,
results = <function 6>,
root = <function 7>,
= {
__call = <function 8>
}
},
root = "C:\Users\Steff\code\java_gradle_demo"
} }
INFO | 2023-08-22T11:09:01Z+0200 | ...te\pack\packer\start\neotest/lua/neotest/client/init.lua:281 | Searching C:\Users\Steff\code\java_gradle_demo for test files
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\pack\packer\start\neotest/lua/neotest/lib/file/find.lua:26 | Scanning directory: src
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\pack\packer\start\neotest/lua/neotest/lib/file/find.lua:26 | Scanning directory: gradle
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\pack\packer\start\neotest/lua/neotest/lib/file/find.lua:26 | Scanning directory: build
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\pack\packer\start\neotest/lua/neotest/lib/file/find.lua:26 | Scanning directory: bin
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\pack\packer\start\neotest/lua/neotest/lib/file/find.lua:26 | Scanning directory: src\test
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\pack\packer\start\neotest/lua/neotest/lib/file/find.lua:26 | Scanning directory: src\main
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\pack\packer\start\neotest/lua/neotest/lib/file/find.lua:26 | Scanning directory: gradle\wrapper
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\pack\packer\start\neotest/lua/neotest/lib/file/find.lua:26 | Scanning directory: build\tmp
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\pack\packer\start\neotest/lua/neotest/lib/file/find.lua:26 | Scanning directory: build\test-results
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\pack\packer\start\neotest/lua/neotest/lib/file/find.lua:26 | Scanning directory: build\resources
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\pack\packer\start\neotest/lua/neotest/lib/file/find.lua:26 | Scanning directory: build\reports
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\pack\packer\start\neotest/lua/neotest/lib/file/find.lua:26 | Scanning directory: build\generated
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\pack\packer\start\neotest/lua/neotest/lib/file/find.lua:26 | Scanning directory: build\classes
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\pack\packer\start\neotest/lua/neotest/lib/file/find.lua:26 | Scanning directory: bin\test
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\pack\packer\start\neotest/lua/neotest/lib/file/find.lua:26 | Scanning directory: bin\main
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\pack\packer\start\neotest/lua/neotest/lib/file/find.lua:26 | Scanning directory: src\test\java
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\pack\packer\start\neotest/lua/neotest/lib/file/find.lua:26 | Scanning directory: src\main\resources
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\pack\packer\start\neotest/lua/neotest/lib/file/find.lua:26 | Scanning directory: src\main\java
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\pack\packer\start\neotest/lua/neotest/lib/file/find.lua:26 | Scanning directory: build\tmp\test
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\pack\packer\start\neotest/lua/neotest/lib/file/find.lua:26 | Scanning directory: build\tmp\compileTestJava
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\pack\packer\start\neotest/lua/neotest/lib/file/find.lua:26 | Scanning directory: build\tmp\compileJava
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\pack\packer\start\neotest/lua/neotest/lib/file/find.lua:26 | Scanning directory: build\test-results\test
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\pack\packer\start\neotest/lua/neotest/lib/file/find.lua:26 | Scanning directory: build\resources\main
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\pack\packer\start\neotest/lua/neotest/lib/file/find.lua:26 | Scanning directory: build\reports\tests
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\pack\packer\start\neotest/lua/neotest/lib/file/find.lua:26 | Scanning directory: build\generated\sources
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\pack\packer\start\neotest/lua/neotest/lib/file/find.lua:26 | Scanning directory: build\classes\java
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\pack\packer\start\neotest/lua/neotest/lib/file/find.lua:26 | Scanning directory: bin\test\com
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\pack\packer\start\neotest/lua/neotest/lib/file/find.lua:26 | Scanning directory: bin\main\com
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\pack\packer\start\neotest/lua/neotest/lib/file/find.lua:26 | Scanning directory: src\test\java\com
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\pack\packer\start\neotest/lua/neotest/lib/file/find.lua:26 | Scanning directory: src\main\java\com
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\pack\packer\start\neotest/lua/neotest/lib/file/find.lua:26 | Scanning directory: build\test-results\test\binary
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\pack\packer\start\neotest/lua/neotest/lib/file/find.lua:26 | Scanning directory: build\reports\tests\test
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\pack\packer\start\neotest/lua/neotest/lib/file/find.lua:26 | Scanning directory: build\generated\sources\headers
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\pack\packer\start\neotest/lua/neotest/lib/file/find.lua:26 | Scanning directory: build\generated\sources\annotationProcessor
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\pack\packer\start\neotest/lua/neotest/lib/file/find.lua:26 | Scanning directory: build\classes\java\test
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\pack\packer\start\neotest/lua/neotest/lib/file/find.lua:26 | Scanning directory: build\classes\java\main
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\pack\packer\start\neotest/lua/neotest/lib/file/find.lua:26 | Scanning directory: bin\test\com\steff
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\pack\packer\start\neotest/lua/neotest/lib/file/find.lua:26 | Scanning directory: bin\main\com\steff
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\pack\packer\start\neotest/lua/neotest/lib/file/find.lua:26 | Scanning directory: src\test\java\com\steff
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\pack\packer\start\neotest/lua/neotest/lib/file/find.lua:26 | Scanning directory: src\main\java\com\steff
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\pack\packer\start\neotest/lua/neotest/lib/file/find.lua:26 | Scanning directory: build\reports\tests\test\packages
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\pack\packer\start\neotest/lua/neotest/lib/file/find.lua:26 | Scanning directory: build\reports\tests\test\js
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\pack\packer\start\neotest/lua/neotest/lib/file/find.lua:26 | Scanning directory: build\reports\tests\test\css
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\pack\packer\start\neotest/lua/neotest/lib/file/find.lua:26 | Scanning directory: build\reports\tests\test\classes
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\pack\packer\start\neotest/lua/neotest/lib/file/find.lua:26 | Scanning directory: build\generated\sources\headers\java
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\pack\packer\start\neotest/lua/neotest/lib/file/find.lua:26 | Scanning directory: build\generated\sources\annotationProcessor\java
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\pack\packer\start\neotest/lua/neotest/lib/file/find.lua:26 | Scanning directory: build\classes\java\test\com
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\pack\packer\start\neotest/lua/neotest/lib/file/find.lua:26 | Scanning directory: build\classes\java\main\com
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\pack\packer\start\neotest/lua/neotest/lib/file/find.lua:26 | Scanning directory: bin\test\com\steff\demo
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\pack\packer\start\neotest/lua/neotest/lib/file/find.lua:26 | Scanning directory: bin\main\com\steff\demo
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\pack\packer\start\neotest/lua/neotest/lib/file/find.lua:26 | Scanning directory: src\test\java\com\steff\demo
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\pack\packer\start\neotest/lua/neotest/lib/file/find.lua:26 | Scanning directory: src\main\java\com\steff\demo
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\pack\packer\start\neotest/lua/neotest/lib/file/find.lua:26 | Scanning directory: build\generated\sources\headers\java\test
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\pack\packer\start\neotest/lua/neotest/lib/file/find.lua:26 | Scanning directory: build\generated\sources\headers\java\main
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\pack\packer\start\neotest/lua/neotest/lib/file/find.lua:26 | Scanning directory: build\generated\sources\annotationProcessor\java\test
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\pack\packer\start\neotest/lua/neotest/lib/file/find.lua:26 | Scanning directory: build\generated\sources\annotationProcessor\java\main
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\pack\packer\start\neotest/lua/neotest/lib/file/find.lua:26 | Scanning directory: build\classes\java\test\com\steff
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\pack\packer\start\neotest/lua/neotest/lib/file/find.lua:26 | Scanning directory: build\classes\java\main\com\steff
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\pack\packer\start\neotest/lua/neotest/lib/file/find.lua:26 | Scanning directory: build\classes\java\test\com\steff\demo
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\pack\packer\start\neotest/lua/neotest/lib/file/find.lua:26 | Scanning directory: build\classes\java\main\com\steff\demo
INFO | 2023-08-22T11:09:01Z+0200 | ...pack\packer\start\neotest-java/lua/neotest-java/init.lua:141 | Searching file C:\Users\Steff\code\java_gradle_demo\src\test\java\com\steff\demo\DemoApplicationTests.java for test positions
DEBUG | 2023-08-22T11:09:01Z+0200 | ...pack\packer\start\neotest/lua/neotest/lib/subprocess.lua:138 | Waiting for result 1
INFO | 2023-08-22T11:09:01Z+0200 | ...pack\packer\start\neotest/lua/neotest/lib/subprocess.lua:151 | CHILD | Received remote call 1 <function 1>
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\pack\packer\start\neotest/lua/neotest/lib/file/init.lua:22 | CHILD | Reading file: C:\Users\Steff\code\java_gradle_demo\src\test\java\com\steff\demo\DemoApplicationTests.java
DEBUG | 2023-08-22T11:09:01Z+0200 | ...pack\packer\start\neotest/lua/neotest/lib/subprocess.lua:89 | Result registed for callback 1
DEBUG | 2023-08-22T11:09:01Z+0200 | ...te\pack\packer\start\neotest/lua/neotest/client/init.lua:297 | Found { {
id = "C:\Users\Steff\code\java_gradle_demo",
name = "java_gradle_demo",
path = "C:\Users\Steff\code\java_gradle_demo",
type = "dir"
}, { {
id = "C:\Users\Steff\code\java_gradle_demo\src",
name = "src",
path = "C:\Users\Steff\code\java_gradle_demo\src",
type = "dir"
}, { {
id = "C:\Users\Steff\code\java_gradle_demo\src\test",
name = "test",
path = "C:\Users\Steff\code\java_gradle_demo\src\test",
type = "dir"
}, { {
id = "C:\Users\Steff\code\java_gradle_demo\src\test\java",
name = "java",
path = "C:\Users\Steff\code\java_gradle_demo\src\test\java",
type = "dir"
}, { {
id = "C:\Users\Steff\code\java_gradle_demo\src\test\java\com",
name = "com",
path = "C:\Users\Steff\code\java_gradle_demo\src\test\java\com",
type = "dir"
}, { {
id = "C:\Users\Steff\code\java_gradle_demo\src\test\java\com\steff",
name = "steff",
path = "C:\Users\Steff\code\java_gradle_demo\src\test\java\com\steff",
type = "dir"
}, { {
id = "C:\Users\Steff\code\java_gradle_demo\src\test\java\com\steff\demo",
name = "demo",
path = "C:\Users\Steff\code\java_gradle_demo\src\test\java\com\steff\demo",
type = "dir"
}, { {
id = "C:\Users\Steff\code\java_gradle_demo\src\test\java\com\steff\demo\DemoApplicationTests.java",
name = "DemoApplicationTests.java",
path = "C:\Users\Steff\code\java_gradle_demo\src\test\java\com\steff\demo\DemoApplicationTests.java",
type = "file"
} } } } } } } } }
DEBUG | 2023-08-22T11:09:01Z+0200 | ...k\packer\start\neotest/lua/neotest/client/state/init.lua:54 | New positions at ID C:\Users\Steff\code\java_gradle_demo
INFO | 2023-08-22T11:09:01Z+0200 | ...\packer\start\neotest/lua/neotest/client/events/init.lua:48 | Emitting discover_positions event
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\packer\start\neotest/lua/neotest/client/events/init.lua:50 | Calling listener status for event discover_positions
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\packer\start\neotest/lua/neotest/client/events/init.lua:50 | Calling listener summary for event discover_positions
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\packer\start\neotest/lua/neotest/client/events/init.lua:50 | Calling listener diagnostic for event discover_positions
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\packer\start\neotest/lua/neotest/client/events/init.lua:50 | Calling listener state for event discover_positions
INFO | 2023-08-22T11:09:01Z+0200 | ...te\pack\packer\start\neotest/lua/neotest/client/init.lua:327 | Discovering files with 20 workers
INFO | 2023-08-22T11:09:01Z+0200 | ...te\pack\packer\start\neotest/lua/neotest/client/init.lua:301 | Parsing C:\Users\Steff\code\java_gradle_demo\src\test\java\com\steff\demo\DemoApplicationTests.java
INFO | 2023-08-22T11:09:01Z+0200 | ...pack\packer\start\neotest-java/lua/neotest-java/init.lua:141 | Searching file C:\Users\Steff\code\java_gradle_demo\src\test\java\com\steff\demo\DemoApplicationTests.java for test positions
DEBUG | 2023-08-22T11:09:01Z+0200 | ...pack\packer\start\neotest/lua/neotest/lib/subprocess.lua:138 | Waiting for result 2
INFO | 2023-08-22T11:09:01Z+0200 | ...pack\packer\start\neotest/lua/neotest/lib/subprocess.lua:151 | CHILD | Received remote call 2 <function 1>
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\pack\packer\start\neotest/lua/neotest/lib/file/init.lua:22 | CHILD | Reading file: C:\Users\Steff\code\java_gradle_demo\src\test\java\com\steff\demo\DemoApplicationTests.java
DEBUG | 2023-08-22T11:09:01Z+0200 | ...pack\packer\start\neotest/lua/neotest/lib/subprocess.lua:89 | Result registed for callback 2
DEBUG | 2023-08-22T11:09:01Z+0200 | ...te\pack\packer\start\neotest/lua/neotest/client/init.lua:307 | Found { {
id = "C:\Users\Steff\code\java_gradle_demo\src\test\java\com\steff\demo\DemoApplicationTests.java",
name = "DemoApplicationTests.java",
path = "C:\Users\Steff\code\java_gradle_demo\src\test\java\com\steff\demo\DemoApplicationTests.java",
range = { 0, 0, 16, 0 },
type = "file"
}, { {
id = "com.steff.demo.DemoApplicationTests",
name = "com.steff.demo.DemoApplicationTests",
path = "C:\Users\Steff\code\java_gradle_demo\src\test\java\com\steff\demo\DemoApplicationTests.java",
range = { 7, 0, 15, 1 },
type = "namespace"
}, { {
id = "com.steff.demo.DemoApplicationTests.contextLoads",
name = "contextLoads",
path = "C:\Users\Steff\code\java_gradle_demo\src\test\java\com\steff\demo\DemoApplicationTests.java",
range = { 11, 21, 13, 2 },
type = "test"
} } } }
DEBUG | 2023-08-22T11:09:01Z+0200 | ...k\packer\start\neotest/lua/neotest/client/state/init.lua:54 | New positions at ID C:\Users\Steff\code\java_gradle_demo\src\test\java\com\steff\demo\DemoApplicationTests.java
INFO | 2023-08-22T11:09:01Z+0200 | ...\packer\start\neotest/lua/neotest/client/events/init.lua:48 | Emitting discover_positions event
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\packer\start\neotest/lua/neotest/client/events/init.lua:50 | Calling listener status for event discover_positions
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\packer\start\neotest/lua/neotest/client/events/init.lua:50 | Calling listener summary for event discover_positions
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\packer\start\neotest/lua/neotest/client/events/init.lua:50 | Calling listener diagnostic for event discover_positions
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\packer\start\neotest/lua/neotest/client/events/init.lua:50 | Calling listener state for event discover_positions
INFO | 2023-08-22T11:09:01Z+0200 | ...te\pack\packer\start\neotest/lua/neotest/client/init.lua:481 | Initialisation finished in 0.04 seconds
INFO | 2023-08-22T11:09:01Z+0200 | ...\packer\start\neotest/lua/neotest/client/events/init.lua:48 | Emitting test_file_focused event
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\packer\start\neotest/lua/neotest/client/events/init.lua:50 | Calling listener status for event test_file_focused
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\packer\start\neotest/lua/neotest/client/events/init.lua:50 | Calling listener summary for event test_file_focused
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\packer\start\neotest/lua/neotest/client/events/init.lua:50 | Calling listener diagnostic for event test_file_focused
INFO | 2023-08-22T11:09:01Z+0200 | ...\packer\start\neotest/lua/neotest/client/events/init.lua:48 | Emitting started event
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\packer\start\neotest/lua/neotest/client/events/init.lua:50 | Calling listener summary for event started
DEBUG | 2023-08-22T11:09:01Z+0200 | ...k\packer\start\neotest/lua/neotest/client/state/init.lua:85 | Setting positions to running com.steff.demo.DemoApplicationTests
TRACE | 2023-08-22T11:09:01Z+0200 | ...k\packer\start\neotest/lua/neotest/client/state/init.lua:86 | { "com.steff.demo.DemoApplicationTests", "com.steff.demo.DemoApplicationTests.contextLoads" }
INFO | 2023-08-22T11:09:01Z+0200 | ...\packer\start\neotest/lua/neotest/client/events/init.lua:48 | Emitting run event
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\packer\start\neotest/lua/neotest/client/events/init.lua:50 | Calling listener status for event run
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\packer\start\neotest/lua/neotest/client/events/init.lua:50 | Calling listener summary for event run
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\packer\start\neotest/lua/neotest/client/events/init.lua:50 | Calling listener diagnostic for event run
DEBUG | 2023-08-22T11:09:01Z+0200 | ...\packer\start\neotest/lua/neotest/client/events/init.lua:50 | Calling listener state for event run
INFO | 2023-08-22T11:09:01Z+0200 | ...pack\packer\start\neotest-java/lua/neotest-java/init.lua:215 | Building test spec
INFO | 2023-08-22T11:09:01Z+0200 | ...pack\packer\start\neotest-java/lua/neotest-java/init.lua:63 | Found C:\Users\Steff\code\java_gradle_demo\build.gradle.kts, using gradle runner
INFO | 2023-08-22T11:09:01Z+0200 | ...pack\packer\start\neotest-java/lua/neotest-java/init.lua:239 | Test spec = {
command = "gradle test --tests 'com.steff.demo.DemoApplicationTests.'",
context = {},
cwd = "C:\Users\Steff\code\java_gradle_demo"
}
INFO | 2023-08-22T11:09:01Z+0200 | ...ker\start\neotest/lua/neotest/client/strategies/init.lua:34 | Starting process neotest-java:C:\Users\Steff\code\java_gradle_demo-com.steff.demo.DemoApplicationTests with strategy integrated
DEBUG | 2023-08-22T11:09:01Z+0200 | ...ker\start\neotest/lua/neotest/client/strategies/init.lua:35 | Strategy spec {
command = "gradle test --tests 'com.steff.demo.DemoApplicationTests.
'",
context = {},
cwd = "C:\Users\Steff\code\java_gradle_demo",
strategy = {
height = 40,
width = 120
}
}
INFO | 2023-08-22T11:09:09Z+0200 | ...\packer\start\neotest/lua/neotest/client/events/init.lua:48 | Emitting test_focused event
DEBUG | 2023-08-22T11:09:09Z+0200 | ...\packer\start\neotest/lua/neotest/client/events/init.lua:50 | Calling listener summary for event test_focused
INFO | 2023-08-22T11:09:14Z+0200 | ...\packer\start\neotest/lua/neotest/client/events/init.lua:48 | Emitting test_focused event
DEBUG | 2023-08-22T11:09:14Z+0200 | ...\packer\start\neotest/lua/neotest/client/events/init.lua:50 | Calling listener summary for event test_focused
INFO | 2023-08-22T11:09:14Z+0200 | ...ker\start\neotest/lua/neotest/client/strategies/init.lua:54 | Process for position neotest-java:C:\Users\Steff\code\java_gradle_demo-com.steff.demo.DemoApplicationTests exited with code 1
DEBUG | 2023-08-22T11:09:14Z+0200 | ...ker\start\neotest/lua/neotest/client/strategies/init.lua:56 | Output of process C:\Users\Steff\AppData\Local\Temp\nvim.0\rQ0PCh\0
DEBUG | 2023-08-22T11:09:14Z+0200 | ...k\packer\start\neotest/lua/neotest/client/state/init.lua:70 | New results for adapter neotest-java:C:\Users\Steff\code\java_gradle_demo
TRACE | 2023-08-22T11:09:14Z+0200 | ...k\packer\start\neotest/lua/neotest/client/state/init.lua:71 | {
["com.steff.demo.DemoApplicationTests"] = {
errors = {},
output = "C:\Users\Steff\AppData\Local\Temp\nvim.0\rQ0PCh\0",
status = "failed"
},
["com.steff.demo.DemoApplicationTests.contextLoads"] = {
errors = {},
output = "C:\Users\Steff\AppData\Local\Temp\nvim.0\rQ0PCh\0",
status = "failed"
}
}
INFO | 2023-08-22T11:09:14Z+0200 | ...\packer\start\neotest/lua/neotest/client/events/init.lua:48 | Emitting results event
DEBUG | 2023-08-22T11:09:14Z+0200 | ...\packer\start\neotest/lua/neotest/client/events/init.lua:50 | Calling listener output for event results
DEBUG | 2023-08-22T11:09:14Z+0200 | ...\packer\start\neotest/lua/neotest/client/events/init.lua:50 | Calling listener quickfix for event results
DEBUG | 2023-08-22T11:09:14Z+0200 | ...\packer\start\neotest/lua/neotest/client/events/init.lua:50 | Calling listener diagnostic for event results
DEBUG | 2023-08-22T11:09:14Z+0200 | ...k\packer\start\neotest/lua/neotest/client/state/init.lua:70 | New results for adapter neotest-java:C:\Users\Steff\code\java_gradle_demo
TRACE | 2023-08-22T11:09:14Z+0200 | ...k\packer\start\neotest/lua/neotest/client/state/init.lua:71 | {
["com.steff.demo.DemoApplicationTests"] = {
errors = {},
output = "C:\Users\Steff\AppData\Local\Temp\nvim.0\rQ0PCh\0",
status = "failed"
},
["com.steff.demo.DemoApplicationTests.contextLoads"] = {
errors = {},
output = "C:\Users\Steff\AppData\Local\Temp\nvim.0\rQ0PCh\0",
status = "failed"
}
}
INFO | 2023-08-22T11:09:14Z+0200 | ...\packer\start\neotest/lua/neotest/client/events/init.lua:48 | Emitting results event
DEBUG | 2023-08-22T11:09:14Z+0200 | ...\packer\start\neotest/lua/neotest/client/events/init.lua:50 | Calling listener output for event results
DEBUG | 2023-08-22T11:09:14Z+0200 | ...\packer\start\neotest/lua/neotest/client/events/init.lua:50 | Calling listener quickfix for event results
DEBUG | 2023-08-22T11:09:14Z+0200 | ...\packer\start\neotest/lua/neotest/client/events/init.lua:50 | Calling listener diagnostic for event results
DEBUG | 2023-08-22T11:09:14Z+0200 | ...acker\start\neotest/lua/neotest/consumers/diagnostic.lua:55 | Setting diagnostics for C:\Users\Steff\code\java_gradle_demo\src\test\java\com\steff\demo\DemoApplicationTests.java {}
DEBUG | 2023-08-22T11:09:14Z+0200 | ...\packer\start\neotest/lua/neotest/client/events/init.lua:50 | Calling listener status for event results
DEBUG | 2023-08-22T11:09:14Z+0200 | ...\packer\start\neotest/lua/neotest/client/events/init.lua:50 | Calling listener summary for event results
DEBUG | 2023-08-22T11:09:14Z+0200 | ...\packer\start\neotest/lua/neotest/client/events/init.lua:50 | Calling listener output_panel for event results
DEBUG | 2023-08-22T11:09:14Z+0200 | ...\packer\start\neotest/lua/neotest/client/events/init.lua:50 | Calling listener state for event results
DEBUG | 2023-08-22T11:09:14Z+0200 | ...acker\start\neotest/lua/neotest/consumers/diagnostic.lua:55 | Setting diagnostics for C:\Users\Steff\code\java_gradle_demo\src\test\java\com\steff\demo\DemoApplicationTests.java {}
DEBUG | 2023-08-22T11:09:14Z+0200 | ...\packer\start\neotest/lua/neotest/client/events/init.lua:50 | Calling listener status for event results
DEBUG | 2023-08-22T11:09:14Z+0200 | ...\packer\start\neotest/lua/neotest/client/events/init.lua:50 | Calling listener summary for event results
DEBUG | 2023-08-22T11:09:14Z+0200 | ...\packer\start\neotest/lua/neotest/client/events/init.lua:50 | Calling listener output_panel for event results
DEBUG | 2023-08-22T11:09:14Z+0200 | ...\pack\packer\start\neotest/lua/neotest/lib/file/init.lua:22 | Reading file: C:\Users\Steff\AppData\Local\Temp\nvim.0\rQ0PCh\0
DEBUG | 2023-08-22T11:09:14Z+0200 | ...\packer\start\neotest/lua/neotest/client/events/init.lua:50 | Calling listener state for event results
INFO | 2023-08-22T11:09:18Z+0200 | ...\packer\start\neotest/lua/neotest/client/events/init.lua:48 | Emitting test_focused event
DEBUG | 2023-08-22T11:09:18Z+0200 | ...\packer\start\neotest/lua/neotest/client/events/init.lua:50 | Calling listener summary for event test_focused
DEBUG | 2023-08-22T11:09:21Z+0200 | ...\pack\packer\start\neotest/lua/neotest/lib/file/init.lua:22 | Reading file: C:\Users\Steff\AppData\Local\Temp\nvim.0\rQ0PCh\0
INFO | 2023-08-22T11:09:25Z+0200 | ...\packer\start\neotest/lua/neotest/client/events/init.lua:48 | Emitting test_focused event
DEBUG | 2023-08-22T11:09:25Z+0200 | ...\packer\start\neotest/lua/neotest/client/events/init.lua:50 | Calling listener summary for event test_focused

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.