feat: qol improvements
This commit is contained in:
parent
986e03c974
commit
5bf8c8960b
13 changed files with 810 additions and 0 deletions
54
tests/health_spec.lua
Normal file
54
tests/health_spec.lua
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
-- Unit tests for health check functionality
|
||||
describe("cp.health", function()
|
||||
local health
|
||||
|
||||
before_each(function()
|
||||
health = require("cp.health")
|
||||
end)
|
||||
|
||||
describe("system checks", function()
|
||||
it("detects Neovim version correctly", function()
|
||||
-- Test Neovim version detection
|
||||
end)
|
||||
|
||||
it("detects available compilers", function()
|
||||
-- Test C++, Rust, etc. compiler detection
|
||||
end)
|
||||
|
||||
it("detects Python installation", function()
|
||||
-- Test Python availability
|
||||
end)
|
||||
|
||||
it("checks for required external tools", function()
|
||||
-- Test curl, wget, etc. availability
|
||||
end)
|
||||
end)
|
||||
|
||||
describe("configuration validation", function()
|
||||
it("validates contest configurations", function()
|
||||
-- Test config validation
|
||||
end)
|
||||
|
||||
it("checks directory permissions", function()
|
||||
-- Test write permissions for directories
|
||||
end)
|
||||
|
||||
it("validates language configurations", function()
|
||||
-- Test language setup validation
|
||||
end)
|
||||
end)
|
||||
|
||||
describe("health report generation", function()
|
||||
it("generates comprehensive health report", function()
|
||||
-- Test :checkhealth cp output
|
||||
end)
|
||||
|
||||
it("provides actionable recommendations", function()
|
||||
-- Test that health check gives useful advice
|
||||
end)
|
||||
|
||||
it("handles partial functionality gracefully", function()
|
||||
-- Test when some features are unavailable
|
||||
end)
|
||||
end)
|
||||
end)
|
||||
Loading…
Add table
Add a link
Reference in a new issue