Skip to content

Commit

Permalink
✅tests(swift): cli unit tests added.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeioth committed Feb 4, 2024
1 parent c38cc8c commit a1d7d75
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion tests/tests/languages/swift.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
--- This test file run all supported cases of use.
--- @usage :luafile ~/.local/share/nvim/lazy/compiler.nvim/tests/tests/languages/swift.lua

local ms = 1000 -- wait time
local ms = 2000 -- wait time
local language = require("compiler.languages.swift")
local example = vim.fn.stdpath "data" .. "/lazy/compiler.nvim/tests/examples/languages/swift/"

Expand All @@ -28,3 +28,17 @@ vim.wait(ms)
vim.api.nvim_set_current_dir(example .. "solution/")
language.action("option4")
vim.wait(ms)

-- Swift build and run
vim.api.nvim_set_current_dir(example .. "swift-build-and-run/")
language.action("option5")
vim.wait(ms)

-- Swift build
vim.api.nvim_set_current_dir(example .. "swift-build/")
language.action("option6")
vim.wait(ms)

-- Swift run
language.action("option7")
vim.wait(ms)

0 comments on commit a1d7d75

Please sign in to comment.