From 28b7e4cecadce207d532b8d42346c3823450a35f Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Tue, 17 Feb 2026 19:14:14 -0600 Subject: refactor: tests: standardize naming, consolidate files, and expand testutil - Expand testutil-wttrin.el with shared fixtures and macros (testutil-wttrin-with-clean-weather-buffer, testutil-wttrin-mock-http-response, sample ANSI/weather constants) - Consolidate cache tests: port unique tests from cleanup-cache-constants and cleanup-cache-refactored into cleanup-cache-if-needed, delete obsolete files - Extract startup-delay tests into dedicated file - Add setup/teardown and (require 'testutil-wttrin) to all test files - Rename all 160 tests to follow test---- convention - Rename integration test file and add detailed docstrings - Update Makefile glob to discover new integration test naming pattern Co-Authored-By: Claude Opus 4.6 --- tests/test-wttrin-smoke.el | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'tests/test-wttrin-smoke.el') diff --git a/tests/test-wttrin-smoke.el b/tests/test-wttrin-smoke.el index b3c7eee..2a2d828 100644 --- a/tests/test-wttrin-smoke.el +++ b/tests/test-wttrin-smoke.el @@ -18,6 +18,17 @@ (require 'ert) (require 'wttrin) +(require 'testutil-wttrin) + +;;; Setup and Teardown + +(defun test-wttrin-smoke-setup () + "Setup for smoke tests." + (testutil-wttrin-setup)) + +(defun test-wttrin-smoke-teardown () + "Teardown for smoke tests." + (testutil-wttrin-teardown)) ;;; Package Loading Tests -- cgit v1.2.3