Skip to content

tests(charm): adds tests to charm experiment#355

Draft
srtaalej wants to merge 6 commits intomainfrom
charm-tests
Draft

tests(charm): adds tests to charm experiment#355
srtaalej wants to merge 6 commits intomainfrom
charm-tests

Conversation

@srtaalej
Copy link
Contributor

Changelog

Added unit tests for charm prompt implementations and Slack brand theme 🦋

Summary

This PR adds unit tests for all 5 charm/huh prompt types (input, confirm, select, password, multi-select) and the Slack brand theme. It refactors charm prompt functions to extract buildXxxForm builders, separating form construction from execution to enable programmatic testing via huh's Update/View API

Requirements

@srtaalej srtaalej added this to the Next Release milestone Feb 26, 2026
@srtaalej srtaalej self-assigned this Feb 26, 2026
@srtaalej srtaalej added enhancement M-T: A feature request for new functionality experiment Experimental feature accessed behind the --experiment flag or toggle semver:minor Use on pull requests to describe the release version increment build M-T: Changes to compilation and CI processes labels Feb 26, 2026
@codecov
Copy link

codecov bot commented Feb 26, 2026

Codecov Report

❌ Patch coverage is 86.45833% with 13 lines in your changes missing coverage. Please review.
✅ Project coverage is 64.76%. Comparing base (1059ec2) to head (94b0d7d).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
internal/iostreams/charm.go 56.66% 13 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #355      +/-   ##
==========================================
+ Coverage   64.48%   64.76%   +0.27%     
==========================================
  Files         213      214       +1     
  Lines       17879    17955      +76     
==========================================
+ Hits        11530    11629      +99     
+ Misses       5276     5248      -28     
- Partials     1073     1078       +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build M-T: Changes to compilation and CI processes enhancement M-T: A feature request for new functionality experiment Experimental feature accessed behind the --experiment flag or toggle semver:minor Use on pull requests to describe the release version increment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants