mix pd.validate (PropertyDamage v0.2.0)

View Source

Validates a PropertyDamage model and adapter configuration.

This task checks that your model is correctly configured before running tests, catching common mistakes early.

Usage

mix pd.validate MyApp.TestModel MyApp.TestAdapter

What Gets Checked

Errors (validation fails)

  • Model module exists and implements required callbacks
  • Adapter module exists and implements required callbacks
  • All command modules exist and implement required callbacks
  • All projection modules exist
  • Injectable events are covered by injector adapters

Warnings (validation passes with warnings)

  • Commands missing downstream_observables/0
  • Events produced but not handled by assertion projections
  • Missing optional callbacks that may be useful

Options

--verbose    Show detailed information about the model
--strict     Treat warnings as errors

Examples

# Basic validation
mix pd.validate MyApp.TestModel MyApp.TestAdapter

# With verbose output
mix pd.validate MyApp.TestModel MyApp.TestAdapter --verbose

# Fail on warnings
mix pd.validate MyApp.TestModel MyApp.TestAdapter --strict