From 2ad5259853b1a6c59721b68808181ab5dde12c42 Mon Sep 17 00:00:00 2001 From: Pouryafard75 Date: Tue, 13 Feb 2024 14:22:57 -0500 Subject: [PATCH] Update the build.gradle to skip token-dependant tests based on the notoken property --- build.gradle | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build.gradle b/build.gradle index 4f7ac3e9cd..9539b941f6 100644 --- a/build.gradle +++ b/build.gradle @@ -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 {