neotest-dotnet icon indicating copy to clipboard operation
neotest-dotnet copied to clipboard

"No test found" when using multiple adapters

Open Tantol opened this issue 8 months ago • 3 comments

I need help with setting neotest for full-stack development.

Whenever I run below configuration:

  {
    'nvim-neotest/neotest',
    dependencies = {
      'nvim-neotest/nvim-nio',
      'nvim-lua/plenary.nvim',
      'antoinemadec/FixCursorHold.nvim',
      'nvim-treesitter/nvim-treesitter',
      'Issafalcon/neotest-dotnet',
      'nvim-neotest/neotest-jest',
    },
    config = function()
      require('neotest').setup {
        adapters = {
          require 'neotest-jest',
          require 'neotest-dotnet',
        },
      }
    end,
  },

I get communicate "No test found" when trying to run dotnet test. Jest tests runs without any problem.

Below config works for dotnet tests (removed jest adapter):

  {
    'nvim-neotest/neotest',
    dependencies = {
      'nvim-neotest/nvim-nio',
      'nvim-lua/plenary.nvim',
      'antoinemadec/FixCursorHold.nvim',
      'nvim-treesitter/nvim-treesitter',
      'Issafalcon/neotest-dotnet',
      'nvim-neotest/neotest-jest',
    },
    config = function()
      require('neotest').setup {
        adapters = {
          require 'neotest-dotnet',
        },
      }
    end,
  },

Tantol avatar Jun 03 '24 20:06 Tantol