forked from storyprotocol/sdk-e2e-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ec444ef
commit 8b9c0bf
Showing
62 changed files
with
20,789 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
WALLET_PRIVATE_KEY_A=0x0000000000000000000000000000000000000000 | ||
WALLET_PRIVATE_KEY_B=0x0000000000000000000000000000000000000000 | ||
WALLET_PRIVATE_KEY_C=0x0000000000000000000000000000000000000000 | ||
|
||
STORY_RPC_PROVIDER_URL=https://story-network.rpc.caldera.xyz/http | ||
STORY_NFT_CONTRACT_ADDRESS=0x0000000000000000000000000000000000000000 | ||
STORY_LICENSING_MODULE_ADDRESS=0x0000000000000000000000000000000000000000 | ||
STORY_ROYALTY_POLICY_ADDRESS=0x0000000000000000000000000000000000000000 | ||
STORY_MINTING_FEE_TOKEN=0x0000000000000000000000000000000000000000 | ||
STORY_ROYALTY_POLICY_LAP_ADDRESS=0x0000000000000000000000000000000000000000 | ||
STORY_ROYALTY_ERC20=0x0000000000000000000000000000000000000000 | ||
STORY_ARBITRATION_POLICY_ADDRESS=0x0000000000000000000000000000000000000000 | ||
|
||
SEPOLIA_RPC_PROVIDER_URL=https://rpc-sepolia.rockx.com | ||
SEPOLIA_NFT_CONTRACT_ADDRESS=0x0000000000000000000000000000000000000000 | ||
SEPOLIA_LICENSING_MODULE_ADDRESS=0x0000000000000000000000000000000000000000 | ||
SEPOLIA_ROYALTY_POLICY_ADDRESS=0x0000000000000000000000000000000000000000 | ||
SEPOLIA_MINTING_FEE_TOKEN=0x0000000000000000000000000000000000000000 | ||
SEPOLIA_ROYALTY_POLICY_LAP_ADDRESS=0x0000000000000000000000000000000000000000 | ||
SEPOLIA_ARBITRATION_POLICY_ADDRESS=0x0000000000000000000000000000000000000000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
pnpm-debug.log* | ||
lerna-debug.log* | ||
|
||
node_modules | ||
mochawesome-report | ||
dist | ||
dist-ssr | ||
*.local | ||
.env | ||
|
||
# Editor directories and files | ||
.vscode/* | ||
!.vscode/extensions.json | ||
.idea | ||
.DS_Store | ||
*.suo | ||
*.ntvs* | ||
*.njsproj | ||
*.sln | ||
*.sw? | ||
package-lock.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
v20.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# SDK-E2E-Tests | ||
|
||
This project dedicates to perform e2e test for the story protocol typescript sdk. | ||
|
||
## Prerequisites to run the e2e test | ||
|
||
- install nvm if don't have it by running: | ||
|
||
`curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash`. | ||
|
||
- run `nvm use` to switch node version to v20.0.0 | ||
- if you don't have v20.0.0 node installed, please install it by running: `nvm install v20.0.0` | ||
|
||
- run `npm i` to install dependencies. | ||
- once all dependencies are installed, you should config your `.env` file with a reference to the `.env.example` file | ||
|
||
## How to run the test | ||
|
||
- Run specific test: | ||
|
||
``` | ||
mocha -r ts-node/register -r mocha-steps ./test/**/**/*.test.ts --timeout 240000 | ||
``` | ||
|
||
- Run smoke test in Sepolia: | ||
|
||
``` | ||
test:sepolia:smoke | ||
``` | ||
|
||
- Run smoke test in Story Network: | ||
|
||
``` | ||
test:story:smoke | ||
``` | ||
|
||
- Run e2e test in Sepolia: | ||
|
||
``` | ||
npm run test:sepolia:e2e | ||
``` | ||
|
||
- Run e2e test in Story Network: | ||
|
||
``` | ||
npm run test:story:e2e | ||
``` | ||
|
||
- Run all tests in Sepolia: | ||
``` | ||
npm run test:sepolia | ||
``` | ||
|
||
- Run all tests in Story: | ||
``` | ||
npm run test:story | ||
``` | ||
|
||
- Open report, test report is under ./mochawesome-report folder | ||
``` | ||
npm run open:report | ||
``` |
Oops, something went wrong.