After splitting from the original scl_lsp repo, update for plugin-only scope: - README.md: focused on Neovim plugin installation, configuration, commands, keybindings, and editor features - AGENTS.md: plugin-only project structure and conventions - test/run_tests.lua: run only plugin tests (udt, db, fb, integration) - test/test_integration.lua: remove plc_json dependency (server module) - queries/: move from queries/*.scm to queries/scl/*.scm (nvim-treesitter per-language convention) - ftdetect/scl.vim: add filetype detection for .scl/.udt/.db files
47 lines
1.0 KiB
Lua
47 lines
1.0 KiB
Lua
#!/usr/bin/env lua
|
|
|
|
package.path = package.path .. ";lua/?.lua"
|
|
|
|
local test = dofile("test/test_harness.lua")
|
|
|
|
print("========================================")
|
|
print(" tia-lsp.nvim - Plugin Test Suite")
|
|
print("========================================")
|
|
print(string.format("Reference Project: %s", test.REF_PROJECT))
|
|
|
|
local function run_all_tests()
|
|
print("\n" .. string.rep("=", 40))
|
|
print("Running All Tests")
|
|
print(string.rep("=", 40))
|
|
|
|
test.reset()
|
|
|
|
local function run_test_file(name)
|
|
print(string.format("\n>>> Running %s", name))
|
|
local ok, err = pcall(dofile, "test/" .. name)
|
|
if not ok then
|
|
print("ERROR: " .. tostring(err))
|
|
test.fail_count = test.fail_count + 1
|
|
end
|
|
end
|
|
|
|
run_test_file("test_udt.lua")
|
|
run_test_file("test_db.lua")
|
|
run_test_file("test_fb.lua")
|
|
run_test_file("test_integration.lua")
|
|
|
|
test.report()
|
|
|
|
return test.fail_count == 0
|
|
end
|
|
|
|
local success = run_all_tests()
|
|
|
|
if success then
|
|
print("\n=== ALL TESTS PASSED ===")
|
|
os.exit(0)
|
|
else
|
|
print("\n=== SOME TESTS FAILED ===")
|
|
os.exit(1)
|
|
end
|