parent
db25ff3817
commit
5770ea2456
|
@ -110,6 +110,7 @@ dependencies = [
|
|||
"hex",
|
||||
"ignore",
|
||||
"miette",
|
||||
"owo-colors",
|
||||
"pallas",
|
||||
"pallas-traverse",
|
||||
"petgraph",
|
||||
|
|
|
@ -30,10 +30,10 @@ where
|
|||
if let Err(err) = build_result {
|
||||
err.report();
|
||||
|
||||
miette::bail!("failed: {} error(s), {warning_count} warning(s)", err.len(),);
|
||||
miette::bail!("Failed: {} error(s), {warning_count} warning(s)", err.len(),);
|
||||
};
|
||||
|
||||
println!("\nfinished with {warning_count} warning(s)\n");
|
||||
println!("\nFinished with {warning_count} warning(s)\n");
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
|
|
@ -23,3 +23,4 @@ walkdir = "2.3.2"
|
|||
hex = "0.4.3"
|
||||
pallas = "0.14.0"
|
||||
pallas-traverse = "0.14.0"
|
||||
owo-colors = "3.5.0"
|
||||
|
|
|
@ -18,6 +18,7 @@ use aiken_lang::{
|
|||
IdGenerator,
|
||||
};
|
||||
use miette::NamedSource;
|
||||
use owo_colors::OwoColorize;
|
||||
use pallas::{
|
||||
codec::minicbor,
|
||||
ledger::{addresses::Address, primitives::babbage},
|
||||
|
@ -490,11 +491,22 @@ impl Project {
|
|||
cpu: i64::MAX,
|
||||
};
|
||||
|
||||
if !tests.is_empty() {
|
||||
println!(
|
||||
"\n{}\n",
|
||||
"Running tests...".bold().underline().purple().to_string()
|
||||
);
|
||||
}
|
||||
|
||||
let fmt_tests = |is_passing: bool, test: Script, remaining_budget: ExBudget| -> String {
|
||||
let ExBudget { mem, cpu } = initial_budget - remaining_budget;
|
||||
format!(
|
||||
" [{}] [mem: {}, cpu: {}] {}::{}",
|
||||
if is_passing { "PASS" } else { "FAIL" },
|
||||
if is_passing {
|
||||
"PASS".bold().green().to_string()
|
||||
} else {
|
||||
"FAIL".bold().red().to_string()
|
||||
},
|
||||
mem,
|
||||
cpu,
|
||||
test.module,
|
||||
|
|
Loading…
Reference in New Issue