Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion cli/src/cmd/forge/test/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ fn test(
thread::spawn(move || runner.test(&filter, Some(tx), include_fuzz_tests).unwrap());

let mut results: BTreeMap<String, SuiteResult> = BTreeMap::new();
let mut gas_report = GasReport::new(config.gas_reports);
let mut gas_report = GasReport::new(config.gas_reports, config.gas_reports_ignore);
for (contract_name, suite_result) in rx {
let mut tests = suite_result.test_results.clone();
println!();
Expand Down
2 changes: 2 additions & 0 deletions cli/test-utils/src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,8 @@ impl TestCommand {
}

/// Runs the command and prints its output
/// You have to pass --nocapture to cargo test or the print won't be displayed.
/// The full command would be: cargo test -- --nocapture
pub fn print_output(&mut self) {
let output = self.execute();
println!("stdout: {}", String::from_utf8_lossy(&output.stdout));
Expand Down
Loading