Skip to content

Commit

Permalink
chore(test): activate fee provider tests via flag
Browse files Browse the repository at this point in the history
  • Loading branch information
theborakompanioni committed Oct 10, 2024
1 parent d0cb122 commit 3554200
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -358,8 +358,16 @@ configure(subprojects.findAll { project -> project.name.indexOf('-example-applic
integrationTest.onlyIf { isIdeEnv || project.hasProperty('exampleTest') }
}

// disable test tasks in check phase for all 'bitcoin-fee-*' subprojects.
// these subprojects tests are very expensive as they all query external APIs.
// you can invoke them manually via `./gradlew check -PfeeProviderTest`
configure(subprojects.findAll { project -> project.name.indexOf('bitcoin-fee-') == 0 }) {
test.onlyIf { isIdeEnv || project.hasProperty('feeProviderTest') }
integrationTest.onlyIf { isIdeEnv || project.hasProperty('feeProviderTest') }
}

configure(subprojects.findAll { project -> project.subprojects.isEmpty() &&
(project.name.startsWith('bitcoin-fee'))
(project.name.startsWith('bitcoin-fee-'))
}) {
apply from: "${project.rootDir}/proto.gradle"
}
Expand Down

0 comments on commit 3554200

Please sign in to comment.