Skip to content

Commit b9f2daa

Browse files
committed
Release 0.2.0
1 parent 21abf65 commit b9f2daa

3 files changed

Lines changed: 30 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,34 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## [0.2.0] - 2026-05-31
6+
7+
### Added
8+
9+
- **Auto print capture:** plugin automatically enables `-rP` behavior — captured `print()` output is shown for both passing and failing tests without any user configuration.
10+
- **PID-aware pipe discovery:** `wait_for_revit_pipe` can now wait for a specific process ID, ensuring `force_launch` connects to the newly spawned instance only.
11+
12+
### Changed
13+
14+
- **`revit_launch` → force_launch semantics:** renamed internal parameter from `prefer_fresh` to `force_launch`. When enabled, the plugin disconnects any existing bridge, spawns a new Revit instance, and waits for that exact PID's pipe — never reuses existing instances.
15+
- **`_opt_bool` fix:** corrected boolean option parsing so `revit_launch = true` in `pyproject.toml` is properly respected when no CLI flag is explicitly passed.
16+
- **Type annotations refactor:** resolved false-positive IDE warnings across `bridge.py`, `connection.py`, `suite_leasing.py`, and `dialog_resolver.py`.
17+
- **`SetupRevit.py` (Revit-side):** I/O hijacking is now conditional on `sys.__pytest_running__` flag — prevents conflict with pytest capture during test execution.
18+
- **`PytestRunner.py` (Revit-side):** sets `sys.__pytest_running__ = True` during execution; top-level error handling wraps entire `_run()` to always return structured JSON.
19+
20+
### Removed
21+
22+
- **`discover_tests()`** method from `bridge.py` (client-side dead code; server endpoint remains).
23+
- **`DiscoverRequest` / `DiscoverResponse`** classes from `models.py` (unused by client).
24+
- **`BRIDGE_METHOD_TESTS_DISCOVER`** constant (no longer referenced).
25+
- **`resolve_existing()` / `get_suite_process_id()` / `_prune_stale()`** from `suite_leasing.py` (unused).
26+
- **`launch_revit()`** from `discovery.py` (replaced by `start_revit` + PID tracking).
27+
- **`addopts = "-rP"`** from `pyproject.toml` (now automatic via plugin).
28+
29+
### Fixed
30+
31+
- **`revit_launch = true` in INI ignored:** `_opt_bool` now correctly reads INI value when CLI flag is not explicitly set.
32+
533
## [0.1.0] - 2026-05-03
634

735
### Added

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "revitdevtool_pytest"
7-
version = "0.1.0"
7+
version = "0.2.0"
88
description = "pytest plugin for testing Revit API code via RevitDevTool Named Pipe bridge"
99
readme = "README.md"
1010
license = "MIT"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""RevitDevTool.PyTest: Run pytest tests inside a live Revit process via Named Pipe bridge."""
22

3-
__version__ = "0.1.0"
3+
__version__ = "0.2.0"

0 commit comments

Comments
 (0)