local neotest = require('neotest') vim.keymap.set('n', 'tr', function () neotest.run.run() end) vim.keymap.set('n', 'tR', function () neotest.run.run_last() end) vim.keymap.set('n', 'tf', function () neotest.run.run(vim.fn.expand('%')) end) vim.keymap.set('n', 'tS', function () neotest.run.stop() end) vim.keymap.set('n', 'ta', function () neotest.run.attach() end) vim.keymap.set('n', 'to', function () neotest.output.open() end) vim.keymap.set('n', 'ts', function () neotest.summary.toggle() end) neotest.setup({ adapters = { require("neotest-phpunit")({ root_files = { "phpunit.xml", "composer.json" }, phpunit_cmd = { "docker-compose", "exec", "fpm", "./vendor/bin/phpunit" }, filter_dirs = { "vendor" }, mapped_docker_dir = "/var/www", append_to_cwd = '/api' }), }, })