-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Format all Markdown files for the client
- Loading branch information
1 parent
80f5375
commit 97849f8
Showing
5 changed files
with
47 additions
and
33 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
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
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
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 |
---|---|---|
@@ -1,35 +1,42 @@ | ||
# Integration Tests | ||
|
||
In order to ensure integration with Kadena's blockchain, the client comes with integration tests that can be run towards an instance of devnet. | ||
In order to ensure integration with Kadena's blockchain, the client comes with | ||
integration tests that can be run towards an instance of devnet. | ||
|
||
## Pre-requisites | ||
Make sure all dependencies have been installed and you've successfully built the project. For the integration tests you'll also need [docker][1]. | ||
|
||
``` shell | ||
Make sure all dependencies have been installed and you've successfully built the | ||
project. For the integration tests you'll also need [docker][1]. | ||
|
||
```sh | ||
pnpm install | ||
pnpm run build | ||
``` | ||
|
||
## Unit Tests | ||
Kadena Client uses the default code coverage profile, found [here][2]. | ||
|
||
Kadena Client uses the default code coverage profile, found [here][2]. | ||
|
||
## Integration Tests (with devnet) | ||
|
||
To run integration tests against devnet it requires starting devnet and exposing | ||
the pact endpoints at [http://localhost:8080][3]. To do this, simply execute the following command: | ||
Always pulling will ensure you're always using the latest available version of devnet. | ||
the pact endpoints at [http://localhost:8080][3]. To do this, simply execute the | ||
following command: Always pulling will ensure you're always using the latest | ||
available version of devnet. | ||
|
||
``` shell | ||
```sh | ||
docker run --pull=always -it --rm -p 127.0.0.1:8080:8080 -v l1:/data kadena/devnet | ||
``` | ||
This will start up devnet and expose the required ports. | ||
|
||
Once devnet is up and running execute the following script to execute the integration tests. | ||
This will start up devnet and expose the required ports. | ||
|
||
Once devnet is up and running execute the following script to execute the | ||
integration tests. | ||
|
||
``` shell | ||
```sh | ||
pnpm run test:integration | ||
``` | ||
|
||
[1]: https://www.docker.com/ | ||
[2]: /packages/tools/heft-rig/jest.config.json | ||
[3]: http://localhost:8080 | ||
|
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