Steps to setup gradle project Create Gradle project: gradle init Add Dependency in build.gradle Build gradle project gradle build Finally run test gradle test --tests [class name] gradle test build.gradle plugins { id 'java' } group 'org.example' version '1.0-SNAPSHOT' repositories { mavenCentral() } dependencies { implementation 'com.googlecode.json-simple:json-simple:1.1' implementation 'org.junit.jupiter:junit-jupiter:5.4.2' implementation 'org.junit.jupiter:junit-jupiter:5.4.2' testImplementation 'io.rest-assured:rest-assured:4.3.1' testImplementation 'junit:junit:4.12' testImplementation 'com.opencsv:opencsv:5.4' testImplementation 'com.google.code.gson:gson:2.8.6' } test { testLogging { events "passed", "skipped", "failed", "standardOut", "standardError" } test.outputs.upToDateWhen {false} }