wormhole/cosmwasm/deployment/terra2/test
Kevin Peters 1937691afe terra2: Fix broken CI tests due to LocalTerra v2.4.0 update
LocalTerra was updated to v2.4.0 and the LCD no longer returns
HTTP errors on some transaction failures (not enough gas still returns
an HTTP error). This caused some of the integration tests to break, because
the typescript SDK would throw on those HTTP errors.

https://github.com/terra-money/LocalTerra/releases/tag/v2.4.0
2023-05-25 13:14:10 -04:00
..
src terra2: Fix broken CI tests due to LocalTerra v2.4.0 update 2023-05-25 13:14:10 -04:00
.gitignore cosmwasm - separate deploy code per chain 2023-01-19 09:32:13 -06:00
README.md cosmwasm - separate deploy code per chain 2023-01-19 09:32:13 -06:00
jestconfig.json cosmwasm - separate deploy code per chain 2023-01-19 09:32:13 -06:00
package-lock.json cosmwasm - separate deploy code per chain 2023-01-19 09:32:13 -06:00
package.json cosmwasm - separate deploy code per chain 2023-01-19 09:32:13 -06:00
tsconfig.json cosmwasm - separate deploy code per chain 2023-01-19 09:32:13 -06:00

README.md

Wormhole Contract Test Suite

Running Local Terra Node

In order to run these tests, you need to have a local Terra node running. These tests are meant to be run using LocalTerra. This requires Docker Compose to run. You can also run terrad with the same set up Tilt uses (see configuration here).

Build

In the terra2 root directory, run the following:

make artifacts

Run the Test Suite

The easy way would be to navigate to the terra2 root directory, run the following:

make test

If you plan on adding new tests and plan on persisting LocalTerra, make sure dependencies are installed:

npm ci

And run in this directory:

npm run test

These tests are built using Jest and is meant to be structured very similarly to the ethereum unit tests, which requires running a local node via ganache before truffle can run any of the testing scripts in the test directory.

Currently the only test that exists is for the token bridge's transfer and transfer with payload.