python3 -m pytest tests/ -vpython3 -m pytest tests/test_display.py -v
python3 -m pytest tests/test_storage.py -v
python3 -m pytest tests/test_autocomplete.py -v
python3 -m pytest tests/test_integration.py -vpython3 -m pytest tests/ --cov=devkit --cov-report=htmltest_display.py- Tests for display utilities (intro, formatting, etc.)test_storage.py- Tests for storage operations (snippets, config, history)test_autocomplete.py- Tests for autocomplete functionality
test_integration.py- Tests for CLI commandstest_autocomplete_integration.py- Integration tests for autocomplete
Current test coverage includes:
- ✅ Display utilities (intro, formatting, numbered lists)
- ✅ Storage operations (save/load snippets, config, history)
- ✅ Autocomplete functionality
- ✅ CLI command execution
- ✅ Help formatting
- ✅ Status command with BinaryPath effect
- Run
devkit --help- intro should show on first use - Run
devkit status- intro should NOT show again - Clear config:
rm ~/.devkit/config.json- intro should show again
- Run
devkit --help- commands table should be clearly visible - Commands should be in a bordered table with proper spacing
- Run
devkit ask "find large files"- check bullet points are formatted - Check that numbered lists (1. 2. 3.) display correctly
- Verify citations section appears
- Run
devkit status- should use BinaryPath effect - Status information should animate in binary form
- Run
devkit about- should show animated intro - Should display about information in a formatted panel
- Test autocomplete in interactive mode (if implemented)
- Verify command names are in autocomplete list
- Some integration tests may fail if devkit directory doesn't exist - tests now create it
- BinaryPath effect requires terminaltexteffects package
- Autocomplete requires prompt-toolkit package