kickstart.nvim/lua/custom/plugins/tests.lua

23 lines
712 B
Lua

return {
"nvim-neotest/neotest",
dependencies = {
"nvim-lua/plenary.nvim",
"antoinemadec/FixCursorHold.nvim",
"sidlatau/neotest-dart"
},
config = function()
require('neotest').setup({
adapters = {
require('neotest-dart') {
command = 'fvm flutter', -- Command being used to run tests. Defaults to `flutter`
-- Change it to `fvm flutter` if using FVM
-- change it to `dart` for Dart only tests
use_lsp = true, -- When set Flutter outline information is used when constructing test name.
-- Useful when using custom test names with @isTest annotation
custom_test_method_names = {},
},
},
})
end
}