This plugin can be tested using Neotest if everything has been set up correctly.
How to generate the samples found in test/unit/samples/
Run the following Lua script with
content
set to the file content of the test-- Replace with actual test content local content = [[ it('Always succeeds', function() assert.is_true(true) end) ]] vim.fn.writefile(vim.fn.split(content, '\n'), 'throwaway.lua', 's') local s = vim.fn.system { './test/busted', '--output', 'json', '--', 'throwaway.lua' } local output = vim.json.decode(vim.split(s, '\n')[1]) print(vim.inspect(output))
Copy-paste the output representation to a sample file as the
output
object.Replace all references to
throwaway.lua
withtempname
.Sort the table entries to your liking