Skip to content

test(app): add unit test coverage for printWelcome - #387

Merged
codeyevsky merged 1 commit into
solongate:mainfrom
sanskarprakashtambe02-afk:test-print-welcoome-coverage
Nov 12, 2026
Merged

codeyevsky merged 1 commit into
solongate:mainfrom
sanskarprakashtambe02-afk:test-print-welcoome-coverage

Conversation

@sanskarprakashtambe02-afk

Copy link
Copy Markdown
Contributor

Summary

Fixes #305

Adds unit test coverage for printWelcome() in packages/app/main_test.go using the existing captureStdout test helper. The test verifies that the welcome banner output properly mentions both solongate doctor and the ~/.solongate/ configuration/policy path when executed without args.

Validation

  • Mirrored the implementation pattern of TestPrintHelpDocumentsRealSandboxSyntax.
  • Captured stdout from printWelcome() and asserted that it contains the expected strings solongate doctor and ~/.solongate/.

codeyevsky
codeyevsky previously approved these changes Nov 12, 2026
@codeyevsky
codeyevsky force-pushed the test-print-welcoome-coverage branch from fd7647c to ea83fca Compare November 12, 2026 19:06
Signed-off-by: codeyevsky <cinaryildirim2006@outlook.com>
@codeyevsky
codeyevsky merged commit 0c8306c into solongate:main Nov 12, 2026
34 of 35 checks passed
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.

app: printWelcome has no test coverage

3 participants