fix: add jvm live tests to exclude when using excludeConnectedTests property

This commit is contained in:
thunderbiscuit 2024-06-26 16:17:20 -04:00
parent c66b48467a
commit e2abc3620a
No known key found for this signature in database
GPG Key ID: 88253696EB836462

View File

@ -24,13 +24,16 @@ java {
// This block ensures that the tests that require access to a blockchain are not // This block ensures that the tests that require access to a blockchain are not
// run if the -P excludeConnectedTests flag is passed to gradle. // 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. // 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 // Note that the command in the CI is ./gradlew test -P excludeConnectedTests
tasks.test { tasks.test {
if (project.hasProperty("excludeConnectedTests")) { if (project.hasProperty("excludeConnectedTests")) {
exclude("**/LiveWalletTest.class") exclude("**/LiveElectrumClientTest.class")
exclude("**/LiveMemoryWalletTest.class")
exclude("**/LiveTransactionTest.class")
exclude("**/LiveTxBuilderTest.class") exclude("**/LiveTxBuilderTest.class")
exclude("**/LiveWalletTest.class")
} }
} }