marilari88 / neotest-vitest

Vitest adapter for Neovim Neotest plugin
92 stars 34 forks source link

Test is automatically skipped? #16

Closed ghost closed 1 year ago

ghost commented 1 year ago

Hello,

here is my config settings with neotest:

basically default settings

 require("neotest").setup({
            adapters = {
                require('neotest-vitest'),
                require("neotest-dart") {
                    command = "flutter",
                    use_lsp = true,
                },
                require("neotest-rust")
            },
})

when I toggled the summary panel, and went down to the test file, pressed r to run that test file. It automatically got skipped.

Vitest is installed, I cound run pnpm run test without problem. Or do I need to install it globally?

2022-12-30_18-49

marilari88 commented 1 year ago

Hi @lodisy, I have no chance to test your code right now. I guess there is an issue with trying to escape </> chars. Try to remove them from the parent test. You can also replace the parent 'test' with 'describe'. Let me know if you manage to run your tests

ghost commented 1 year ago

Hi @lodisy, I have no chance to test your code right now. I guess there is an issue with trying to escape </> chars. Try to remove them from the parent test. You can also replace the parent 'test' with 'describe'. Let me know if you manage to run your tests

Hello, thanks for your reply. I still got this, if I understand correctly:

2022-12-30_20-12

marilari88 commented 1 year ago

Ok. We can exclude escaping issues. The tree in the summary panel is clearly broken: the file name appears under describe name. Is treesitter installed with jsx/tsx parser? Is you code in public repo?

ghost commented 1 year ago

Ok. We can exclude escaping issues. The tree in the summary panel is clearly broken: the file name appears under describe name. Is treesitter installed with jsx/tsx parser? Is you code in public repo?

Thanks you're right.

Somehow I didn't have the tsx installed. Thought the typescript parser would have handled that.

Thanks 🙏