Skip to content

Commit

Permalink
Update the build.gradle to skip token-dependant tests based on the no…
Browse files Browse the repository at this point in the history
…token property
  • Loading branch information
pouryafard75 authored and tsantalis committed Feb 14, 2024
1 parent 24c6d7b commit 2ad5259
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ repositories {
test {
useJUnitPlatform()
maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1
if (project.hasProperty('notoken')) {
exclude '**/GHRepositoryWrapperTest.java'
exclude '**/TestCommandLine.class'
print 'Skipping tests that require a GitHub token'
}
}

dependencies {
Expand Down

0 comments on commit 2ad5259

Please sign in to comment.