Skip to content

Commit

Permalink
Print currently executing test
Browse files Browse the repository at this point in the history
  • Loading branch information
kayabaNerve committed May 13, 2024
1 parent 16d7a83 commit 39a6955
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ jobs:
run: sudo chown runner:runner ./config && sudo chmod 777 -R ./config

- name: Run Litecoin-Monero swap tests
run: RUST_LOG=asmr=debug cargo test --features test_litecoin_node,test_monero_node -- ltc_and_xmr --nocapture
run: RUST_BACKTRACE=1 RUST_LOG=asmr=debug cargo test --features test_litecoin_node,test_monero_node -- ltc_and_xmr --nocapture
11 changes: 11 additions & 0 deletions src/tests/ltc_and_xmr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,17 +60,28 @@ pub async fn run_test<F, Fut>(host_test: bool, test: F)
#[tokio::test]
pub async fn test_ltc_and_xmr() {
let _ = env_logger::builder().is_test(true).try_init();
dbg!("test_success");
run_test(true, test_success).await;

dbg!("test_no_host_address");
run_test(true, test_no_host_address).await;
dbg!("test_never_funded_address");
run_test(true, test_never_funded_address).await;
dbg!("test_funded_address_no_lock");
run_test(true, test_funded_address_no_lock).await;
dbg!("test_funded_address_created_lock");
run_test(true, test_funded_address_created_lock).await;
dbg!("test_published_lock");
run_test(true, test_published_lock).await;
dbg!("test_attempted_refund_yet_success");
run_test(true, test_attempted_refund_yet_success).await;

dbg!("test_no_client_address");
run_test(false, test_no_client_address).await;
dbg!("test_generated_address");
run_test(false, test_generated_address).await;
dbg!("test_funded_get_unscripted");
run_test(false, test_funded_get_unscripted).await;
dbg!("test_funded_get_scripted");
run_test(false, test_funded_get_scripted).await;
}

0 comments on commit 39a6955

Please sign in to comment.