From 59996f299a854525e8681af9aecead10b468630b Mon Sep 17 00:00:00 2001 From: Tudor Timi Date: Wed, 25 Jan 2023 20:04:03 +0200 Subject: [PATCH] Set group for test tasks We want to make them visible to users. This makes it more obvious to them that it's possible to only run the tests using one of the simulators and that they don't have to run the `check` task which tries to run with both. --- .../verificationgentleman/gradle/hdvl/svunit/SVUnitPlugin.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/verificationgentleman/gradle/hdvl/svunit/SVUnitPlugin.java b/src/main/java/com/verificationgentleman/gradle/hdvl/svunit/SVUnitPlugin.java index fbe8f6a..7ce5747 100644 --- a/src/main/java/com/verificationgentleman/gradle/hdvl/svunit/SVUnitPlugin.java +++ b/src/main/java/com/verificationgentleman/gradle/hdvl/svunit/SVUnitPlugin.java @@ -33,6 +33,7 @@ import org.gradle.api.internal.HasConvention; import org.gradle.api.reflect.TypeOf; import org.gradle.api.tasks.TaskProvider; +import org.gradle.language.base.plugins.LifecycleBasePlugin; import org.gradle.util.GUtil; import java.io.File; @@ -134,6 +135,7 @@ private void configureTestTask(Project project, SourceSet mainSourceSet, SourceS TaskProvider testTask = project.getTasks().register(Names.getTestTaskName(toolName), TestTask.class, new Action() { @Override public void execute(TestTask testTask) { + testTask.setGroup(LifecycleBasePlugin.VERIFICATION_GROUP); testTask.setDescription("Runs the unit tests using SVUnit."); testTask.getToolName().set(toolName.toLowerCase()); testTask.getMainArgsFile().set(genFullArgsFile.getDestination());