How can I run test cases against testnet #149
-
How can I run test cases against testnet |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Which kind of test cases? Move? TypeScript? |
Beta Was this translation helpful? Give feedback.
-
Move as of now |
Beta Was this translation helpful? Give feedback.
-
I have already setup profile on testnet, so if I run test cases using And if I setup testing using ts SDK then those transactions will get confirmed on testnet right? |
Beta Was this translation helpful? Give feedback.
Have a look at this discussion. You can read the first comment I wrote to understand how unit tests can be implemented in Move. It also includes the CLI command to run the tests and links to relevant documentation.
Since you want to use testnet, make sure you have run the following command at the root of your directory:
aptos init --network testnet
Set up your
config.yaml
how you would like to.You can deploy the move package and also run tests using the TypeScript SDK. Here are the docs for that.