New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DRAFT] [pox-4] Stacking stateful property-based tests - DelegateStackStxCommand #4564
[DRAFT] [pox-4] Stacking stateful property-based tests - DelegateStackStxCommand #4564
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## feat/pox-4-stateful-property-testing #4564 +/- ##
========================================================================
+ Coverage 82.68% 83.31% +0.62%
========================================================================
Files 453 453
Lines 328491 328491
Branches 323 323
========================================================================
+ Hits 271600 273669 +2069
+ Misses 56883 54814 -2069
Partials 8 8 see 37 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@BowTiedRadone, I just left a few comments.
contrib/core-contract-tests/tests/pox-4/pox_DelegateStackStxCommand.ts
Outdated
Show resolved
Hide resolved
contrib/core-contract-tests/tests/pox-4/pox_DelegateStackStxCommand.ts
Outdated
Show resolved
Hide resolved
contrib/core-contract-tests/tests/pox-4/pox_DelegateStackStxCommand.ts
Outdated
Show resolved
Hide resolved
contrib/core-contract-tests/tests/pox-4/pox-4.stateful-prop.test.ts
Outdated
Show resolved
Hide resolved
contrib/core-contract-tests/tests/pox-4/pox-4.stateful-prop.test.ts
Outdated
Show resolved
Hide resolved
contrib/core-contract-tests/tests/pox-4/pox_DelegateStackStxCommand.ts
Outdated
Show resolved
Hide resolved
contrib/core-contract-tests/tests/pox-4/pox_DelegateStackStxCommand.ts
Outdated
Show resolved
Hide resolved
@@ -66,6 +66,9 @@ describe("PoX-4 invariant tests", () => { | |||
isStacking: false, | |||
hasDelegated: false, | |||
delegatedTo: "", | |||
wasDelegated: false, | |||
wasDelegatedBy: [], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To continue the flow, the operator wallet should have a property like hasLocked
on successful delegate-stack-stx call.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. I kept a note in the base branch/PR: https://github.com/stacks-network/stacks-core/pull/4550/files#r1536597708
Add: generated amount for DelegateStackStx Add: generator limits for startBurnHt using Simnet Fix: address `hasPoolMembers`, `stacker balance check` comments Fix: command descriptions Add: amount generator for DelegateStx; Fix: command logs
f8d274e
to
a7f7e9f
Compare
fe1b3af
into
feat/pox-4-stateful-property-testing
This pull request targets #4550 and adds the ability to call
delegate-stacks-stx
from the stateful property-based tests.