Skip to content

Releases: postgrespro/pgpro-pytest-html-json-extractor

v1.1.1

13 May 10:18

Choose a tag to compare

What's Changed

  • fix: help for "--unescape-logs" is corrected (AUTO -> auto) (#4)

Full Changelog: v1.1.0...v1.1.1

v1.1.0

12 May 20:15

Choose a tag to compare

🚀 Release v1.1.0 — The "De-encapsulation" Update

This version marks a significant evolution of the extractor, moving from simple data recovery to intelligent report reconstruction. We’ve overhauled the core engine to handle the most complex HTML encoding scenarios found in pytest-html evolution.

🌟 Key Highlights

  • Intelligent Log Reconstruction (The "Unescape" Engine)
    Finally defeated the "Russian Doll" effect! The extractor now performs surgical HTML entity decoding specifically within test logs. Your logs are restored to their pristine, human-readable state, while report metadata remains untouched and secure.

  • Version-Aware Logic via ReportAdapter
    Introduced a sophisticated internal registry of ReportAdapters. Whether you are using pytest-html v4.0.2 or the latest v4.2.x, the tool dynamically adjusts its extraction strategy and unescaping rules to match the report's "DNA".

  • Granular Control with --unescape-logs
    You are now in total control of the transformation pipeline. Added a new CLI parameter with three modes:

    • auto (Default): Smart detection based on the report version.
    • yes: Forceful restoration of all encoded characters.
    • no: Raw forensics mode for debugging the original HTML-stored blob.
  • Industrial-Grade Test Suite
    Our CI matrix has expanded to 24 concurrent environments, covering Python 3.8 through 3.14 (Alpha) on Alpine Linux. We’ve added complex E2E tests for nested HTML tags, mixed entities, and cross-version compatibility.

🛠 Internal Improvements

  • Migrated to Enum-based internal configuration for the unescape engine.
  • Hardened the JSON extraction logic against unexpected data types in the report.
  • Refined the CLI interface with explicit check_json logic and improved help descriptions.

Full Changelog: v1.0.0...v1.1.0

v1.0.0

11 May 10:55

Choose a tag to compare