From afae6dbb04f84f7a7f585f55a29e1fccb7de6a7f Mon Sep 17 00:00:00 2001 From: Oleksandr Smirnov Date: Mon, 17 Feb 2025 19:12:42 +0200 Subject: [PATCH] test: add boilerpates --- spec/integration/comment_test.lua | 14 ++++++++++++++ spec/integration/gotests_test.lua | 14 ++++++++++++++ spec/integration/impl_test.lua | 14 ++++++++++++++ 3 files changed, 42 insertions(+) create mode 100644 spec/integration/comment_test.lua create mode 100644 spec/integration/gotests_test.lua create mode 100644 spec/integration/impl_test.lua diff --git a/spec/integration/comment_test.lua b/spec/integration/comment_test.lua new file mode 100644 index 0000000..6288615 --- /dev/null +++ b/spec/integration/comment_test.lua @@ -0,0 +1,14 @@ +local t = require "spec.testutils" + +local child = MiniTest.new_child_neovim() +local T = MiniTest.new_set { + hooks = { + post_once = child.stop, + pre_case = function() + child.restart { "-u", "scripts/minimal_init.lua" } + end, + }, +} +T["comment"] = MiniTest.new_set {} + +return T diff --git a/spec/integration/gotests_test.lua b/spec/integration/gotests_test.lua new file mode 100644 index 0000000..531d29c --- /dev/null +++ b/spec/integration/gotests_test.lua @@ -0,0 +1,14 @@ +local t = require "spec.testutils" + +local child = MiniTest.new_child_neovim() +local T = MiniTest.new_set { + hooks = { + post_once = child.stop, + pre_case = function() + child.restart { "-u", "scripts/minimal_init.lua" } + end, + }, +} +T["gotest"] = MiniTest.new_set {} + +return T diff --git a/spec/integration/impl_test.lua b/spec/integration/impl_test.lua new file mode 100644 index 0000000..b86c363 --- /dev/null +++ b/spec/integration/impl_test.lua @@ -0,0 +1,14 @@ +local t = require "spec.testutils" + +local child = MiniTest.new_child_neovim() +local T = MiniTest.new_set { + hooks = { + post_once = child.stop, + pre_case = function() + child.restart { "-u", "scripts/minimal_init.lua" } + end, + }, +} +T["impl"] = MiniTest.new_set {} + +return T