Skip to content

feat: add test suite for CLI module#351

Merged
bobbyiliev merged 1 commit intomainfrom
feat/cli-testing-framework
Oct 1, 2025
Merged

feat: add test suite for CLI module#351
bobbyiliev merged 1 commit intomainfrom
feat/cli-testing-framework

Conversation

@bobbyiliev
Copy link
Collaborator

This pull request introduces configuration for code quality tools and adds basic automated tests for the CLI module. The main changes are the addition of a setup.cfg file to configure linting and formatting tools, and a new test file to verify the CLI's basic functionality.

Configuration improvements:

  • Added cli/setup.cfg to configure flake8, isort, and mypy for consistent code style and static analysis, including settings to align with the black formatter and ignore common virtual environment directories.

Testing enhancements:

  • Added cli/test_cli.py with basic tests for the CLI, including checks for the help message, the hello greet command, and its behavior with and without a custom name, as well as help output for the hello command group.

- Add pytest-based test suite with 4 test cases
- Test CLI help, commands, and parameter handling
- Add setup.cfg with basic test configuration
- Achieve 100% test coverage for CLI commands
@bobbyiliev bobbyiliev merged commit bdbe347 into main Oct 1, 2025
1 check passed
@bobbyiliev bobbyiliev deleted the feat/cli-testing-framework branch October 1, 2025 08:45
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