Skip to main content

CODITECT Test Categories Reference

Version: 2.0.0 Total Categories: 34 Total Tests: 4,714+


Core Component Tests

AGENTS (107 tests)

Validates all agent definition files in H.P.001-AGENTS/ directory.

Checks:

  • YAML frontmatter required fields (name, description, version)
  • Valid tools list
  • Proper markdown structure
  • Cross-reference integrity

Files: H.P.001-AGENTS/*.md


COMMANDS (105 tests)

Validates slash command definitions in H.P.002-COMMANDS/ directory.

Checks:

  • Frontmatter validation (name, description, allowed-tools)
  • Arguments documentation
  • Usage examples present
  • Model specification

Files: H.P.002-COMMANDS/*.md


SKILLS (62 tests)

Validates skill definitions in H.P.003-SKILLS/*/SKILL.md.

Checks:

  • Skill structure and frontmatter
  • Pattern definitions
  • Integration examples
  • Cross-skill references

Files: H.P.003-SKILLS/*/SKILL.md


SCRIPTS (150 tests)

Validates Python and shell H.P.004-SCRIPTS in H.P.004-SCRIPTS/ directory.

Checks:

  • Python syntax validity
  • Shebang lines present
  • Docstrings for modules
  • Import statement validation

Files: H.P.004-SCRIPTS/*.py, H.P.004-SCRIPTS/*.sh


HOOKS (23 tests)

Validates git H.P.005-HOOKS and automation triggers.

Checks:

  • Hook file structure
  • Trigger definitions
  • Integration with framework

Files: H.P.005-HOOKS/*.md


REGISTRY (453 tests)

Validates component registry integrity.

Checks:

  • framework-registry.json structure
  • Component metadata completeness
  • Version consistency
  • Cross-registry references

Files: H.P.009-CONFIG/framework-registry.json, H.P.009-CONFIG/**/*.json


XREF (97 tests)

Validates cross-reference integrity across components.

Checks:

  • Agent-to-skill references valid
  • Command-to-agent references valid
  • Documentation links resolve
  • No orphaned references

CONFIG (300 tests)

Validates all H.P.009-CONFIGuration files.

Checks:

  • JSON syntax validity
  • Required fields present
  • Schema compliance
  • Environment-specific H.P.009-CONFIGs

Files: H.P.009-CONFIG/**/*.json, .coditect/*.json


DOCS (13 tests)

Validates documentation structure.

Checks:

  • Required documentation files exist
  • Directory structure matches standard
  • README.md presence in key directories

Files: docs/**/*.md


STRUCTURE (10 tests)

Validates overall project structure.

Checks:

  • Required directories exist
  • Proper nesting depth
  • Standard naming conventions

QUALITY (274 tests)

Content quality checks.

Checks:

  • Markdown formatting
  • Code block language specifications
  • Link formatting
  • Heading hierarchy

SECURITY (135 tests)

Security best practices validation.

Checks:

  • No hardcoded secrets
  • No API keys in source
  • Secure default H.P.009-CONFIGurations
  • Input validation patterns

CONSISTENCY (245 tests)

Cross-component consistency checks.

Checks:

  • Naming conventions consistent
  • Version numbers aligned
  • Metadata format uniform
  • Style guide compliance

ACTIVATION (407 tests)

Component activation workflow validation.

Checks:

  • Activation status tracking
  • Dependency resolution
  • State transitions valid
  • Audit trail integrity

Files: .coditect/component-activation-status.json


Infrastructure Tests

INTEGRATION (810 tests)

Component interaction tests.

Checks:

  • Agent-command integration
  • Skill-script integration
  • Registry-component sync
  • Cross-module dependencies

PERFORMANCE (70 tests)

Performance metric validation.

Checks:

  • File sizes reasonable
  • Path depths acceptable
  • Load times nominal
  • Memory patterns valid

DEPENDENCIES (655 tests)

Import and dependency validation.

Checks:

  • Python stdlib imports valid
  • External dependencies declared
  • No circular imports
  • Version constraints met

SCHEMAS (84 tests)

Schema validation tests.

Checks:

  • JSON Schema compliance
  • YAML structure validity
  • Data type correctness
  • Required field presence

DOC_COVERAGE (288 tests)

Documentation coverage metrics.

Checks:

  • All components documented
  • API documentation complete
  • User guides present
  • Examples provided

WORKFLOWS (18 tests)

CI/CD workflow validation.

Checks:

  • GitHub Actions syntax
  • Workflow triggers valid
  • Job dependencies correct
  • Environment H.P.009-CONFIGurations

New Test Categories (v2.0)

UNIT_TESTS (18 tests)

Pytest unit test execution.

What it validates:

  • Test files in tests/ directory can execute
  • pytest infrastructure works
  • Test discovery succeeds

Status interpretation:

  • PASS = Tests ran (even with assertion failures)
  • SKIP = Missing dependencies

IMPORTS (130 tests)

Python import validation.

Checks:

  • All .py files compile without syntax errors
  • Module imports resolve

Symlink chain validation.

Checks:

  • All symlinks resolve to valid targets
  • No broken symlink chains
  • Framework symlinks (.coditect/) valid

GIT_INTEGRITY (5 tests)

Repository health checks.

Checks:

  • Is a valid git repository
  • Working tree status
  • Current branch
  • Submodule status

LINT (5 tests)

Code quality via ruff.

Checks:

  • Python lint issues (informational)
  • Syntax validation
  • Anti-pattern detection

CLI (82 tests)

CLI argument validation.

Checks:

  • Scripts support --help
  • argparse usage present
  • Help text quality

Markdown link validation.

Checks:

  • Internal links resolve
  • Relative paths correct
  • Anchor references valid

PARSE (101 tests)

Configuration file parsing.

Checks:

  • All JSON files parse
  • All YAML files parse
  • No syntax errors

DOCKER (3 tests)

Docker H.P.009-CONFIGuration validation.

Checks:

  • Dockerfile structure valid
  • docker-compose.yml valid
  • .dockerignore present (optional)

TYPES (2 tests)

Type checking with mypy.

Checks:

  • Type annotations present
  • Type errors (informational)

E2E (2 tests)

End-to-end test setup.

Checks:

  • Playwright H.P.009-CONFIGuration
  • Test file discovery

COVERAGE (4 tests)

Test coverage metrics.

Checks:

  • Coverage reports exist
  • Threshold compliance (informational)

SMOKE (13 tests)

Critical path validation.

Checks:

  • Core files exist
  • Essential H.P.004-SCRIPTS executable
  • Framework structure valid

API_CONTRACT (3 tests)

API schema validation.

Checks:

  • OpenAPI schemas valid
  • Contract definitions present

Running Specific Categories

# Single category
python3 H.P.004-SCRIPTS/test-suite.py --category H.P.001-AGENTS

# Multiple categories
python3 H.P.004-SCRIPTS/test-suite.py --category H.P.001-AGENTS,H.P.002-COMMANDS,H.P.003-SKILLS

# All infrastructure tests
python3 H.P.004-SCRIPTS/test-suite.py --category integration,performance,dependencies

Last Updated: December 10, 2025