-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
test: refactor predicate feature tests #1079
Conversation
859e960
to
09433b7
Compare
…/test/refactor-predicate-tests
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.
It seems that a lot of stuff is showing up ad deleted/added when it should appear as "renamed". This makes it harder to review big PRs since one needs to consider everything as new additions and, therefore, read it all over again.
Check this comment from @camsjams for a similar case:
In short, you'd need to delete/add things on the same commit, so GIT understands it as a rename.
Could you please consider doing the same for this PR?
@arboleya I definitely can merge the commits. I am conscious however this won't get the desired effect due to the changes within the files, and that I have split 2 files into 8. |
Oh, now I see. You're right; no worries then. Thanks! The review should take a little longer, but nothing critical. |
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.
I do like the organization, but this goes against previous decisions that aim to help us better align tests with the Rust SDK, see:
#492
#526
Fuel-gauge gives us some great benefits:
- all contract related testing inside the same place
- tests based on the
fuels
package export as a whole are more valuable - easier to copy over rust sdk Sway tests
- easier to spin up new Sway tests
I think the spirit of having contract related testing inside the fuel-gauge should continue
The problem with predicates is that Sway programs don't work without Abi Coder and Script Request packages, so to move the Sway programs inside of the predicate package still violates some of these boundaries we are aiming to solve.
Thankyou for the |
1 similar comment
Thankyou for the |
…/test/refactor-predicate-tests
…/FuelLabs/fuels-ts into db/test/refactor-predicate-tests
…/test/refactor-predicate-tests
@FuelLabs/sdk-ts I've now made changes based off our previous conversation around keeping integration tests in |
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.
Amazing!
* chore: fix spellings in typegen * test: remove predicate tests from fuel gauge * test: move predicate feature tests to predicate package * chore: linting * test: fix file path in predicate contract test * chore: linting * test: add more set data test cases * test: add test case for simulating a transaction * chore: changeset * test: remove redundant fixture * test: add script to build predicates * test: add missing forc projects to predicate worksapce * chore: linting * fix: fix incorrect method name in predicagte test ' ' * test: move predicate integration tests to fuel gauge * core: regen lock file * docs: update doc paths * chore: delete redundant test file * chore: regen lock file * test: remove redundant predicate test --------- Co-authored-by: danielbate <--global> Co-authored-by: Anderson Arboleya <[email protected]>
Bringing some of the testing standards from #1043 to the predicate package, this PR does the following:
fuel-gauge
package into the predicate package inside a featuretests
directoryfuel-gage
predicate
packageutils
directories