Skip to content

Issue 091: Add churn-analysis deterministic tests and golden fixtures #886

Description

@orunganiekan

Category: Backend
Complexity: 200 points
Labels: backend, wave-200

Context

churn-analysis.ts and test-churn-analysis.ts exist for subscriber churn analytics.

Problem

Analytics scripts can regress silently without golden fixtures in scripts/data.

Goal

Expand deterministic tests with checked-in fixtures and stabilize metric definitions (logos, grace lapses, cancels).

Scope

Includes: fixtures + tests.
Does NOT include: ML forecasting (see renewal-forecast separately).

Implementation Guidelines

  • Files: churn-analysis.ts, test-churn-analysis.ts, data/ fixtures.

Acceptance Criteria

  • Tests cover core metrics
  • Fixtures documented
  • Non-zero exit on assertion failure

Validation

npx tsx test-churn-analysis.ts or npm test script.

PR Expectations

The PR should include:

  • Fixtures + tests


Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programbackendwave-200200-point contribution wave issue

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions