Skip to content

Commit

Permalink
fix: add jvm live tests to exclude when using excludeConnectedTests p…
Browse files Browse the repository at this point in the history
…roperty
  • Loading branch information
thunderbiscuit committed Jun 26, 2024
1 parent 7ed3366 commit 94d4995
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions bdk-jvm/lib/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,16 @@ java {

// This block ensures that the tests that require access to a blockchain are not
// run if the -P excludeConnectedTests flag is passed to gradle.
// This ensures our CI runs are not fickle by not requiring access to testnet.
// This ensures our CI runs are not fickle by not requiring access to testnet or signet.
// This is a workaround until we have a proper regtest setup for the CI.
// Note that the command in the CI is ./gradlew test -P excludeConnectedTests
tasks.test {
if (project.hasProperty("excludeConnectedTests")) {
exclude("**/LiveWalletTest.class")
exclude("**/LiveElectrumClientTest.class")
exclude("**/LiveMemoryWalletTest.class")
exclude("**/LiveTransactionTest.class")
exclude("**/LiveTxBuilderTest.class")
exclude("**/LiveWalletTest.class")
}
}

Expand Down

0 comments on commit 94d4995

Please sign in to comment.