Skip to content
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

Add NFT Marketplace Tests #1829

Merged
merged 62 commits into from
Sep 4, 2024
Merged

Add NFT Marketplace Tests #1829

merged 62 commits into from
Sep 4, 2024

Conversation

mj850
Copy link
Contributor

@mj850 mj850 commented Aug 22, 2024

Describe your changes and provide context

Add NFT Marketplace tests to dapp tests
We test for:

  • Listing and Buying regular tokens by associated account
  • Listing and Buying regular tokens by unassociated account
  • Listing and Buying pointer tokens by associated account
  • Listing and Buying pointer tokens by unassociated account

Notably, since unassociated accounts cannot own pointer tokens, they are unable to buy tokens (fails while estimating gas). Should check if this is expected behavior?

Testing performed to validate your change

CI Pipeline additions

@mj850 mj850 marked this pull request as ready for review August 22, 2024 07:20
Copy link

codecov bot commented Aug 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 61.02%. Comparing base (c58e08e) to head (c912ea9).
Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1829      +/-   ##
==========================================
+ Coverage   60.99%   61.02%   +0.03%     
==========================================
  Files         259      259              
  Lines       22824    22824              
==========================================
+ Hits        13922    13929       +7     
+ Misses       7917     7910       -7     
  Partials      985      985              

see 1 file with indirect coverage changes

@@ -0,0 +1,48 @@
# dApp Tests
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for adding this!

@@ -20,5 +20,6 @@ npx hardhat compile
# Set the CONFIG environment variable
export DAPP_TEST_ENV=$1

npx hardhat test --network $1 uniswap/uniswapTest.js
npx hardhat test --network $1 steak/SteakTests.js
#npx hardhat test --network $1 uniswap/uniswapTest.js
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this supposed to be commented out? also maybe we can add another argument to specify which test to run - and if no argument is passed, it just runs all 3?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, forgot to add it back in when I was testing something - just updated to take in the argument so it's easier to run locally

@mj850 mj850 merged commit 7ebd2c4 into main Sep 4, 2024
47 checks passed
@mj850 mj850 deleted the mj/seaportTest branch September 4, 2024 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants