Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sdankel committed Sep 6, 2024
1 parent 7fb8a12 commit 42f5645
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/book/src/testing/testing-with-rust.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,18 +74,21 @@ Let's have a look at the result:
$ tree .
├── Cargo.toml
├── Forc.toml
├── build.rs
├── src
│   └── main.sw
└── tests
└── harness.rs
```

We have two new files!
We have three new files!

- The `Cargo.toml` is the manifest for our new test harness and specifies the
required dependencies including `fuels` the Fuel Rust SDK.
- The `tests/harness.rs` contains some boilerplate test code to get us started,
though doesn't call any contract methods just yet.
- The `build.rs` is a build script that compiles the Sway project with `forc build`
whenever `cargo test` is run.

### 4. Build the forc project

Expand All @@ -111,6 +114,7 @@ $ tree
├── Cargo.toml
├── Forc.lock
├── Forc.toml
├── build.rs
├── out
│   └── debug
│   ├── my-fuel-project-abi.json
Expand Down

0 comments on commit 42f5645

Please sign in to comment.