Skip to content

Commit 1543a38

Browse files
committed
Release v0.14.0
1 parent d67e1ef commit 1543a38

5 files changed

Lines changed: 31 additions & 2 deletions

File tree

changelog/unreleased/inline-test-inputs-and-local-inputs-directories.md renamed to changelog/releases/v0.14.0/entries/inline-test-inputs-and-local-inputs-directories.md

File renamed without changes.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
created: 2026-01-15
2+
title: Inline Test Inputs
3+
intro: >-
4+
This release introduces inline test inputs for better test organization in deeply
5+
nested hierarchies. Tests can now place input data directly alongside test files,
6+
and you can create local `inputs/` directories at any level with automatic shadowing
7+
semantics.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
This release introduces inline test inputs for better test organization in deeply nested hierarchies. Tests can now place input data directly alongside test files, and you can create local `inputs/` directories at any level with automatic shadowing semantics.
2+
3+
## 🚀 Features
4+
5+
### Inline test inputs and local inputs directories
6+
7+
The test harness now supports inline test inputs for better test organization in deeply nested test hierarchies.
8+
9+
Tests can now place input data directly alongside test files using the `.input` extension. The harness automatically sets the `TENZIR_INPUT` environment variable pointing to `<test>.input` when the file exists. This makes test dependencies immediately visible without requiring you to navigate to a distant `inputs/` directory.
10+
11+
Additionally, you can now create `inputs/` directories at any level in the test hierarchy. The harness walks up from each test and uses the nearest `inputs/` directory for `TENZIR_INPUTS`, with shadowing semantics where nearer directories take precedence. This lets you organize shared test data close to the tests that use it.
12+
13+
The resolution hierarchy for `TENZIR_INPUTS` is:
14+
15+
1. `inputs:` override in test frontmatter or `test.yaml` (highest priority)
16+
1. Nearest `inputs/` directory walking up from the test
17+
1. Package-level `tests/inputs/` directory
18+
1. Project-level `inputs/` directory (fallback)
19+
20+
All existing tests continue to work with the global `inputs/` directory.
21+
22+
*By @mavam and @claude.*

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "tenzir-test"
3-
version = "0.13.1"
3+
version = "0.14.0"
44
description = "Reusable test execution framework extracted from the Tenzir repository."
55
readme = "README.md"
66
requires-python = ">=3.12"

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)