Skip to content

Add test data factories and fixtures for consistent testing #907

Closed

Description

@Kingsman-99

Overview

Create reusable test data generators for invoice, payment, and user objects.

Requirements

  • Design factory pattern
  • Implement invoice factory
  • Implement payment factory
  • Implement user factory
  • Support factory configuration
  • Document factory usage

Acceptance Criteria

[ ] Factories generate valid data
[ ] Factories flexible and reusable
[ ] No test data pollution
[ ] Easy to understand and use
[ ] Well documented

Definition of Done

All CI checks must pass before the PR is reviewed.

Activity

  1. shobhamerabacha-star commented on Oct 16, 2026

    @shobhamerabacha-star

    Greetings,

    I looked into the details for "Add test data factories and fixtures for consistent testing" and would like to contribute the fix.

    Technical Implementation Outline:

    1. Review contract state storage keys, TTL policies, and auth guards (Address::require_auth).
    2. Implement safe state transition logic with checked arithmetic preventing under/overflow.
    3. Write comprehensive Soroban unit tests covering standard flows, unauthorized callers, and reverts.
    4. Verify contract execution footprint passes Soroban CPU/memory budget limits.

    Please assign this issue to me. I will submit a clean, well-tested, and production-ready PR promptly!

  2. chriz-cloud commented on Oct 18, 2026

    @chriz-cloud
    Contributor

    @chriz-cloud has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

    i would love to work on this issue

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @chriz-cloud to this issue.

  3. drips-wave commented on Oct 18, 2026

    @drips-wave

    Congratulations, @chriz-cloud! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on October 22, 2026.

    🧑‍💻 @chriz-cloud: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.

    Warning

    When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.

    🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.

    🌊 Happy Wave 🌊

  4. grantfox-oss commented on Oct 20, 2026

    @grantfox-oss

    🎉 This issue has been marked as completed on GrantFox!

    @chriz-cloud's PR #968 was approved and merged by @Kingsman-99.

    🏆 @chriz-cloud: You earned 35 FoxPoints for this contribution! Your current tier: Explorer (363 total points). Track your full progress on GrantFox.

    👏 Great work, @chriz-cloud! Keep contributing to Stellar-split.

  5. drips-wave commented on Oct 20, 2026

    @drips-wave

    This issue has been completed by @chriz-cloud as part of the Stellar Wave Program's 10th Wave 🥳

    😎 @chriz-cloud: You earned 200 Points for completing this issue! Once the Wave's rewards are finalized, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.

    🧑‍💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.

  6. added a commit that references this issue on Oct 22, 2026
    050dc16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions