diff options
| author | Paul Buetow <paul@buetow.org> | 2026-04-27 09:36:29 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-04-27 09:36:29 +0300 |
| commit | 06f9809247f8e7c0659271b5fddbe9a063af41d0 (patch) | |
| tree | 457fc958a2b58e621597a7685645abfa5a70e168 | |
| parent | fe142ba40f1866dd9e4855e8d6a00857e6f90bec (diff) | |
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.
| -rw-r--r-- | integrationtests/integration_test.go | 4 |
1 files changed, 4 insertions, 0 deletions
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()") |
