From d512ac976a1889ed19a6f9f13bddec449dab1644 Mon Sep 17 00:00:00 2001 From: lukacan Date: Fri, 16 Feb 2024 11:21:27 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20readme=20update?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 5a5c217b4..1faa4df71 100644 --- a/README.md +++ b/README.md @@ -54,11 +54,11 @@ trdelnik fuzz run trdelnik --help ``` ### How to write fuzz tests? -Once you initialize Trdelnik in your Anchor project, you will find a fuzz test template in the `trdelnik-tests/src/bin` folder that you can modify according to your needs or create new targets. Do not forget to install honggfuzz-rs using `cargo install honggfuzz`. +Once you initialize Trdelnik in your Anchor project, you will find a fuzz test template in the `trdelnik-tests/fuzz_tests/fuzz_0` folder that you can modify according to your needs or create new targets. Do not forget to install honggfuzz-rs using `cargo install honggfuzz`. ```shell -# To run the fuzz test, execute this command from your terminal and replace with the name of your fuzz target (by default "fuzz_target") +# To run the fuzz test, execute this command from your terminal and replace with the name of particular fuzz test (for example: "fuzz_0") trdelnik fuzz run # To debug your fuzz target crash with parameters from a crash file @@ -84,8 +84,8 @@ Trdelnik also supports writing integration tests in Rust. ```rust -// /trdelnik-tests/tests/test.rs -// TODO: do not forget to add all necessary dependencies to the generated `trdelnik-tests/Cargo.toml` +// /trdelnik-tests/poc_tests/tests/test.rs +// TODO: do not forget to add all necessary dependencies to the generated `trdelnik-tests/poc_tests/Cargo.toml` use program_client::my_instruction; use trdelnik_client::*; use my_program; @@ -174,14 +174,14 @@ async fn test() {} - `Trdelnik` does not export `anchor-spl` and `spl-associated-token-account`, so you have to add it manually. ```toml -# /trdelnik-tests/Cargo.toml +# /trdelnik-tests/poc_tests/Cargo.toml # import the correct versions manually anchor-spl = "0.28.0" spl-associated-token-account = "2.0.0" ``` ```rust -// /trdelnik-tests/tests/test.rs +// /trdelnik-tests/poc_tests/tests/test.rs use anchor_spl::token::Token; use spl_associated_token_account;