Skip to content

[CONTRACTS] Add Soroban contract tests for issue #5#11

Open
liangtovi-debug wants to merge 1 commit into
issueflow-buidl:mainfrom
liangtovi-debug:feat/tests-issue-5
Open

[CONTRACTS] Add Soroban contract tests for issue #5#11
liangtovi-debug wants to merge 1 commit into
issueflow-buidl:mainfrom
liangtovi-debug:feat/tests-issue-5

Conversation

@liangtovi-debug
Copy link
Copy Markdown

Closes #5

Summary

  • replaced template test with Soroban contract tests for current BountyContract API
  • added coverage for tip, create_bounty, and cancel_bounty token-balance behavior
  • added duplicate-creation panic test to lock invariant for (issue_id, maintainer)
  • enabled unit test module in lib.rs with #[cfg(test)] mod test;

Validation

  • cd contracts/bounty && cargo test
  • Result: 4 passed, 0 failed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CONTRACTS] Write contract tests

1 participant