From 06f9809247f8e7c0659271b5fddbe9a063af41d0 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Mon, 27 Apr 2026 09:36:29 +0300 Subject: integrationtests: skip TestThemeSelection when -short is set The test loops over all registered themes and runs the full pipeline for each one, which makes it too slow for quick test cycles. Add a `testing.Short()` guard so it returns early when -short is passed. --- integrationtests/integration_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/integrationtests/integration_test.go b/integrationtests/integration_test.go index e3737f4..44913c5 100644 --- a/integrationtests/integration_test.go +++ b/integrationtests/integration_test.go @@ -408,6 +408,10 @@ func TestIndexHTMLBakesSounds(t *testing.T) { // TestThemeSelection verifies that every registered theme renders a valid // index.html containing core structural elements (post text, nav script). func TestThemeSelection(t *testing.T) { + if testing.Short() { + t.Skip("skipping long-running theme selection integration test in short mode") + } + themes := generator.ListThemes() if len(themes) == 0 { t.Fatal("no themes returned by ListThemes()") -- cgit v1.2.3