Skip to content

Commit

Permalink
docs: Add build script to test templates
Browse files Browse the repository at this point in the history
  • Loading branch information
sdankel committed Sep 6, 2024
1 parent 31a1d6f commit 665b6dd
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
7 changes: 7 additions & 0 deletions templates/sway-predicate-test-rs/template/build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
//! This build script is used to compile the sway project using the `forc` prior to running tests.

use std::process::Command;

fn main() {
Command::new("forc").args(&["build"]).status().unwrap();
}
7 changes: 7 additions & 0 deletions templates/sway-script-test-rs/template/build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
//! This build script is used to compile the sway project using the `forc` prior to running tests.

use std::process::Command;

fn main() {
Command::new("forc").args(&["build"]).status().unwrap();
}
7 changes: 7 additions & 0 deletions templates/sway-test-rs/template/build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
//! This build script is used to compile the sway project using the `forc` prior to running tests.

use std::process::Command;

fn main() {
Command::new("forc").args(&["build"]).status().unwrap();
}

0 comments on commit 665b6dd

Please sign in to comment.