Skip to content

[Phase 1] Integration tests for credential and environment modules #309

Description

@frankbria

Summary

Expand integration test coverage for core/credentials.py and core/environment.py modules.

Problem

These modules exist and work but lack comprehensive integration tests, which could lead to regressions.

Scope

Credential Manager Tests

  • Keyring integration (store/retrieve/delete)
  • Fallback to environment variables
  • API key validation
  • Error handling for missing credentials

Environment Validator Tests

  • Tool detection (git, npm, uv, pytest, ruff)
  • Version requirement validation
  • Missing tool handling
  • Environment report generation

Acceptance Criteria

  • Credential manager tested with real keyring operations
  • Environment validator tested with actual tool detection
  • Edge cases covered (missing tools, invalid versions)
  • Tests run as part of pytest tests/core/
  • Target: Increase v2 test count from 70+ to 100+

Related

  • Part of Phase 1 CLI completion
  • Ensures robust foundation for all subsequent phases

Metadata

Metadata

Assignees

No one assigned

    Labels

    phase-1Phase 1: CLI Foundation Completiontesting

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions