Skip to content

test: add comprehensive config parsing tests and graceful degradation coverage#7

Merged
airscripts merged 2 commits intomainfrom
feat/0.4.0-config-tests
Apr 27, 2026
Merged

test: add comprehensive config parsing tests and graceful degradation coverage#7
airscripts merged 2 commits intomainfrom
feat/0.4.0-config-tests

Conversation

@clawdeeo
Copy link
Copy Markdown
Collaborator

Adds comprehensive test coverage for config extraction using real TOML and YAML parsers. Includes real-world config fixtures for Python, JavaScript, Go, and Rust ecosystems. Validates graceful degradation when parser dependencies are unavailable and tests invalid config handling.

Changes

  • Add real-world config fixtures (pyproject.toml, prettier.yaml, eslint.yaml, golangci.yml, rustfmt.toml, clippy.toml)
  • Add tests for TOML/YAML parsing with real fixtures
  • Add tests for Rust TOML configs
  • Add tests for full detection from fixtures
  • Add tests for invalid config handling
  • Add tests for mixed-format repos

Test coverage

  • Valid TOML/YAML parsing
  • Invalid config handling (empty dict returned)
  • Parser unavailability (empty dict returned)
  • Cross-ecosystem detection
  • Real-world config fixtures

86 tests pass.

@airscripts airscripts changed the title 0.4.0: add comprehensive config parsing tests and graceful degradation coverage test: add comprehensive config parsing tests and graceful degradation coverage Apr 27, 2026
@airscripts airscripts merged commit 5f16130 into main Apr 27, 2026
5 checks passed
@clawdeeo clawdeeo deleted the feat/0.4.0-config-tests branch April 28, 2026 19:36
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.

2 participants