Skip to content

Integrate azd-core v0.2.0 and Extract Testing Utilities#26

Merged
jongio merged 6 commits intomainfrom
azd-core-int-2
Jan 11, 2026
Merged

Integrate azd-core v0.2.0 and Extract Testing Utilities#26
jongio merged 6 commits intomainfrom
azd-core-int-2

Conversation

@jongio
Copy link
Owner

@jongio jongio commented Jan 11, 2026

Summary

This PR integrates azd-core v0.2.0 dependencies and extracts testing utilities to the shared azd-core/testutil package, improving code reuse and maintainability across the azd ecosystem.

Changes

Core Integration (azd-core v0.2.0)

  • Dependency Updates: Upgraded to azd-core v0.2.0 with enhanced fileutil, pathutil, procutil, security, shellutil, and testutil packages
  • Shell Detection Migration: Removed internal shell detection logic (211 lines) in favor of azd-core/shellutil
  • Test Helpers Extraction: Migrated testhelpers package (268 lines) to azd-core/testutil for ecosystem-wide reuse

Environment Variable Standardization

  • Renamed: AZD_SCRIPT_DEBUGAZD_DEBUG for consistency across azd tooling
  • Updated: CLI reference and security review documentation

Bug Fixes

  • Version Command: Added error handling for output format setting failures
  • Integration Tests: Updated version tests to use new azd-core packages

Documentation

  • Specification: Added comprehensive azd-core-extraction spec (684 lines) documenting extraction strategy, package inventory, and integration plan
  • Task Tracking: Created tasks.md (361 lines) with progress tracking for extraction efforts
  • Changelog: Added release notes for shell detection removal and testhelpers extraction

Web Updates

  • Dependencies: Updated web package.json and pnpm-lock.yaml to latest versions
  • Changelog Page: Added entries for AZD_DEBUG rename and testhelpers extraction

Impact

  • Code Reduction: -959 lines through deduplication and extraction
  • Shared Infrastructure: Testing utilities now available across azd-exec, azd-app, and future projects
  • Consistency: Standardized environment variable naming and shell detection behavior
  • Test Coverage: Maintained 100% test pass rate with enhanced test helpers

Files Changed

  • 22 files modified
  • +1,405 / -959 lines
  • Key areas: CLI commands, executor internals, test infrastructure, documentation

- Updated astro from 5.16.6 to 5.16.8
- Updated @playwright/test from 1.49.0 to 1.57.0
- Updated @types/node from 22.10.2 to 25.0.5
- Updated tailwindcss from 4.0.0 to 4.1.18
- Updated tsx from 4.19.2 to 4.21.0
- Updated typescript from 5.7.2 to 5.9.3
- Added new release entries for versions 0.2.30 and 0.2.29 in the changelog
- Created azd-core/testutil package with enhanced functionality.
- Extracted CaptureOutput, FindTestData, TempDir, and Contains helpers.
- Added comprehensive tests targeting ≥85% coverage.
- Updated azd-core README with testutil documentation.

feat: extract cliout package to azd-core for standardized CLI output

- Created azd-core/cliout package with full output formatting functions.
- Maintained Unicode detection, ANSI colors, and JSON mode.
- Added tests targeting ≥80% coverage.
- Updated azd-core README with cliout documentation.

refactor: migrate azd-exec to use azd-core/testutil

- Updated azd-exec to replace internal testhelpers with testutil.
- Deleted internal testhelpers package.
- Verified all tests pass with no regressions.

refactor: migrate azd-app to use azd-core/testutil

- Updated azd-app test infrastructure to utilize testutil.
- Enhanced existing tests with CaptureOutput and Contains.
- Verified all tests pass.

refactor: migrate azd-app output to azd-core/cliout

- Updated azd-app to import cliout from azd-core.
- Deleted internal output package.
- Verified CLI output remains unchanged.

feat: enhance azd-exec CLI output using cliout

- Updated azd-exec commands to use cliout for consistent output formatting.
- Added JSON output mode support.
- Verified all tests pass.

docs: create extension patterns guide in azd-core

- Documented version management, logging, and structure patterns.
- Included examples from azd-exec and azd-app.

chore: update azd-core v0.3.0 release notes

- Documented new packages (testutil, cliout) and integration impact.
- Updated CHANGELOG.md with v0.3.0 entry.
@github-actions
Copy link
Contributor

github-actions bot commented Jan 11, 2026

🚀 Website Preview

Your PR preview was available here.

Preview has been cleaned up as the PR was closed.

github-actions bot added a commit that referenced this pull request Jan 11, 2026
github-actions bot added a commit that referenced this pull request Jan 11, 2026
@github-actions
Copy link
Contributor

🚀 Test This PR

A preview build (0.2.30-pr26) is ready for testing!

🌐 Website Preview

Live Preview: https://jongio.github.io/azd-exec/pr/26/

One-Line Install (Recommended)

PowerShell (Windows):

iex "& { $(irm https://raw.githubusercontent.com/jongio/azd-exec/main/cli/scripts/install-pr.ps1) } -PrNumber 26 -Version 0.2.30-pr26"

Bash (macOS/Linux):

curl -fsSL https://raw.githubusercontent.com/jongio/azd-exec/main/cli/scripts/install-pr.sh | bash -s 26 0.2.30-pr26

Uninstall

When you're done testing:

PowerShell (Windows):

iex "& { $(irm https://raw.githubusercontent.com/jongio/azd-exec/main/cli/scripts/uninstall-pr.ps1) } -PrNumber 26"

Bash (macOS/Linux):

curl -fsSL https://raw.githubusercontent.com/jongio/azd-exec/main/cli/scripts/uninstall-pr.sh | bash -s 26

Build Info:

What to Test:
Please review the PR description and test the changes described there.

@jongio jongio merged commit 2f465d6 into main Jan 11, 2026
15 checks passed
@jongio jongio deleted the azd-core-int-2 branch January 11, 2026 16:23
github-actions bot added a commit that referenced this pull request Jan 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant