Skip to content

Commit

Permalink
serial tests
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-schott committed Dec 18, 2023
1 parent b56de76 commit 55665fd
Show file tree
Hide file tree
Showing 6 changed files with 87 additions and 0 deletions.
70 changes: 70 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,9 @@ features = [ "derive" ]
[dependencies.serde_json]
version = "1.0"

[dependencies.serial_test]
version = "2.0.0"

[dependencies.snarkvm]
workspace = true
features = [ "circuit", "console" ]
Expand Down
3 changes: 3 additions & 0 deletions leo/cli/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ use leo_errors::Result;
use clap::Parser;
use colored::Colorize;
use std::{path::PathBuf, process::exit};
use serial_test::serial;

Check warning on line 23 in leo/cli/cli.rs

View workflow job for this annotation

GitHub Actions / Code Coverage

unused import: `serial_test::serial`

Check warning on line 23 in leo/cli/cli.rs

View workflow job for this annotation

GitHub Actions / Test Package macOS-latest

unused import: `serial_test::serial`

Check warning on line 23 in leo/cli/cli.rs

View workflow job for this annotation

GitHub Actions / Test Package ubuntu-latest

unused import: `serial_test::serial`

/// CLI Arguments entry point - includes global parameters and subcommands
#[derive(Parser, Debug)]
Expand Down Expand Up @@ -160,6 +161,7 @@ pub fn build_nested_test() -> Result<()> {
}

#[test]
#[serial]
pub fn mixed_local_network_build_test() -> Result<()> {
use leo_span::symbol::create_session_if_not_set_then;

Expand All @@ -182,6 +184,7 @@ pub fn mixed_local_network_build_test() -> Result<()> {
}

#[test]
#[serial]
pub fn double_nested_program_run_test() -> Result<()> {
use crate::cli::commands::Run;
use leo_span::symbol::create_session_if_not_set_then;
Expand Down
3 changes: 3 additions & 0 deletions leo/package/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ version = "0.8"
version = "1.0"
features = [ "derive" ]

[dependencies.serial_test]
version = "2.0.0"

[dependencies.toml]
version = "0.8"

Expand Down
3 changes: 3 additions & 0 deletions utils/retriever/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ path = "../disassembler"
[dependencies.sha2]
version = "0.10.8"

[dependencies.serial_test]
version = "2.0.0"

[dependencies.leo-span]
version = "1.9.4"
path = "../../compiler/span"
Expand Down
5 changes: 5 additions & 0 deletions utils/retriever/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@ mod tests {
use aleo_std::aleo_dir;
use leo_span::{symbol::create_session_if_not_set_then, Symbol};
use std::path::PathBuf;
use serial_test::serial;

#[test]
#[ignore]
#[serial]
fn temp_dir_test() {
// Test pulling nested dependencies from network
const BUILD_DIRECTORY: &str = "../tmp/nested";
Expand All @@ -46,6 +48,7 @@ mod tests {

#[test]
#[ignore]
#[serial]
fn mac_test() {
// Test pulling nested dependencies from network
const BUILD_DIRECTORY: &str = "../tmp/nested";
Expand All @@ -63,6 +66,7 @@ mod tests {

#[test]
#[ignore]
#[serial]
fn simple_dir_test() {
// Test pulling nested dependencies from network
const BUILD_DIRECTORY: &str = "../tmp/simple";
Expand All @@ -80,6 +84,7 @@ mod tests {

#[test]
#[ignore]
#[serial]
fn local_dir_test() {
// Test pulling nested dependencies from network
const BUILD_DIRECTORY: &str = "../tmp/local_test";
Expand Down

0 comments on commit 55665fd

Please sign in to comment.