Skip to content

Add property-based fuzz testing for scoring module #29

Description

@Mkalbani

Description

The scoring module currently only has example-based unit tests. Add property-based tests (using proptest or quickcheck) to catch edge cases in score calculation, such as negative time deltas, hint-count overflow, or zero-duration sessions.

Acceptance Criteria

  • proptest added as a dev-dependency
  • Properties defined: score is never negative, score never exceeds the documented max, hint penalties are monotonic
  • At least 5 distinct property tests covering the scoring formula's edge cases
  • Any bugs found during implementation are fixed and documented in the PR description
  • CI runs the property tests as part of the standard test suite

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial Campaign | FWC26Campaign: Official Campaign | FWC26

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions