From e492d80d0bc85c5f760c824b5d80d0beeb268349 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Sat, 10 Jun 2023 20:07:37 -0400 Subject: [PATCH] tests: Differentiate between local and online tests --- tests/main.cr | 4 ++-- tests/methods/check_top_level_imports.cr | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/main.cr b/tests/main.cr index c3c2a57d..ecff726b 100644 --- a/tests/main.cr +++ b/tests/main.cr @@ -4,13 +4,13 @@ require "./methods/*" check_top_level_imports("modules") check_top_level_imports("overlays") -describe "./overlays/joshuto/default.nix" do +describe "./overlays/joshuto/default.nix", tags: "online" do it "uses the latest joshuto commit" do check_latest_commit("kamiyaa/joshuto", branch: "main") end end -describe "./overlays/rofi/default.nix" do +describe "./overlays/rofi/default.nix", tags: "online" do it "uses the latest rofi-wayland commit" do check_latest_commit("lbonn/rofi", branch: "wayland") end diff --git a/tests/methods/check_top_level_imports.cr b/tests/methods/check_top_level_imports.cr index 1fa3983c..abea6860 100644 --- a/tests/methods/check_top_level_imports.cr +++ b/tests/methods/check_top_level_imports.cr @@ -5,7 +5,7 @@ hint = "" def check_top_level_imports(directory) describe "./#{directory}/default.nix" do - it "imports all modules in ./#{directory}/" do + it "imports all modules in ./#{directory}/", tags: "local" do all_modules = Dir.children(directory) all_modules.delete("default.nix") modules = File.read("./#{directory}/default.nix") @@ -18,7 +18,7 @@ def check_top_level_imports(directory) hint = "" end - it "only imports modules that exist in ./#{directory}/" do + it "only imports modules that exist in ./#{directory}/", tags: "local" do all_modules = Dir.children(directory) all_modules.delete("default.nix")