From d3028d770389f314c00b7fece724a8980490a117 Mon Sep 17 00:00:00 2001 From: Rootiest Date: Mon, 7 Sep 2026 19:59:23 -0400 Subject: [PATCH] refactor(tests): extract the shared assertion core into tests/lib.fish check/section/report and the counters move out of the vault suite unchanged. report also writes its counts to $FISH_CONFIG_TEST_COUNTS so a driver can aggregate without parsing stdout, and ends on an explicit boolean per AGENTS.md item 5. All 317 vault assertions and every fixture helper are untouched. --- tests/lib.fish | 62 ++++++++++++++++++++++++++++++++++++ tests/test-agents-vault.fish | 21 ++---------- 2 files changed, 64 insertions(+), 19 deletions(-) create mode 100644 tests/lib.fish diff --git a/tests/lib.fish b/tests/lib.fish new file mode 100644 index 0000000..2edfc91 --- /dev/null +++ b/tests/lib.fish @@ -0,0 +1,62 @@ +#!/usr/bin/env fish +# Copyright (C) 2026 Rootiest +# SPDX-License-Identifier: AGPL-3.0-or-later +# +# Shared assertion and reporting core for tests/test-*.fish. +# +# One assertion: `check