From d0197681cd317c02b320ea7269cbc67b5b7f8f5e Mon Sep 17 00:00:00 2001 From: Dorian Kinoo Crutcher Date: Sun, 7 Aug 2022 13:16:26 -0700 Subject: [PATCH] updated readme to include testing info --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index c252042..1b27d4f 100644 --- a/README.md +++ b/README.md @@ -109,3 +109,21 @@ npm run start ``` From there you should be able to modify the greeting. + +## Run Tests + +This example repo comes with integration tests written in rust and assembly type script. + +To run tests run the following in your terminal: + +```bash +yarn test +``` + +or + +```bash +npm run test +``` + +Integration tests are generally written in javascript. They automatically deploy your contract and execute methods on it. In this way, integration tests simulate interactions from users in a realistic scenario. You will find the integration tests for hello-near in integration-tests/.