Skip to content

Commit

Permalink
chore: Rename execute tests for an accurate description
Browse files Browse the repository at this point in the history
  • Loading branch information
phated committed Jul 26, 2023
1 parent 64e40f2 commit 0fa7b32
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions crates/nargo_cli/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ fn main() {
}

let out_dir = env::var("OUT_DIR").unwrap();
let destination = Path::new(&out_dir).join("prove_and_verify.rs");
let destination = Path::new(&out_dir).join("execute.rs");
let mut test_file = File::create(destination).unwrap();

generate_tests(&mut test_file);
Expand Down Expand Up @@ -92,7 +92,7 @@ fn generate_tests(test_file: &mut File) {
r#"
{exclude_macro}
#[test]
fn prove_and_verify_{test_sub_dir}_{test_name}() {{
fn execute_{test_sub_dir}_{test_name}() {{
let test_program_dir = PathBuf::from("{test_dir}");
let mut cmd = Command::cargo_bin("nargo").unwrap();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ mod tests {
use super::*;

// include tests generated by `build.rs`
include!(concat!(env!("OUT_DIR"), "/prove_and_verify.rs"));
include!(concat!(env!("OUT_DIR"), "/execute.rs"));
}

0 comments on commit 0fa7b32

Please sign in to comment.