nvim-neotest / neotest

An extensible framework for interacting with tests within NeoVim.
MIT License
2.35k stars 115 forks source link

Tests reporting as passed when they should fail #8

Closed jim-at-jibba closed 2 years ago

jim-at-jibba commented 2 years ago

Hey thanks for this plugin, looks like it will be awesome.

I have using the vim-test adapter and when running my jest tests, even if I write failing tests they show as passing when I run them with this plugin. If I run them with vim-test they correctly show as failing.

Below is my config

local status_ok, neotest = pcall(require, "neotest")

if not status_ok then
    return
end

neotest.setup({
    adapters = {
        require("neotest-vim-test")({
            ignore_file_types = { "python", "vim", "lua" },
        }),
    },
})

Here is a screenshot

Screenshot 2022-06-08 at 13 36 29

Thanks

rcarriga commented 2 years ago

Thanks for the report but I can't seem to replicate the issue with a simple Jest setup. Could you please open an issue in neotest-vim-test and provide an example setup so I can reproduce?