Is there a way to log the sway test (forc test)

How would I log the values to debug using forc test?

#[test]
fn test_get_offset_and_redistribution_vals_partial_liquidation_empty_pool() {
     // Partial liquidation, Empty Stability Pool
    let starting_coll = 12_000 * DECIMAL_PRECISION;
    let starting_debt = 10_000 * DECIMAL_PRECISION;
    let price = DECIMAL_PRECISION;
    let liquidation_vals = get_offset_and_redistribution_vals(starting_coll, starting_debt, 0, price);

    assert(liquidation_vals.entire_trove_coll == starting_coll);
}
3 Likes

Hi there!
You might try this one

forc test --logs

Let me know if it works