Skip to content

Property-based tests for SLA calculator (hypothesis) #56

Description

@usmanimamu17-create

Problem

Only example-driven tests; boundary cases missed.

Why

Property-based testing finds edge cases automatically.

Outcome

tests/properties/test_sla_properties.py invariants: availability∈[0,100], MTTR≥0, deterministic at fixed seed.

Acceptance

  • 100+ scenarios
  • < 30s
  • Counter-examples cached

Files

  • tests/properties/test_sla_properties.py (NEW)
  • tests/properties/README.md (NEW)
  • requirements.txt (hypothesis)

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programarea/slaSLA computation, MTTR, availability, dispute workflow, analyticsarea/testingUnit, integration, contract, load, property-based, mutation testspriority/mediumStandard backlog item

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions