Skip to content

Commit

Permalink
Set group for test tasks
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
tudortimi committed Jan 25, 2023
1 parent 1e9118e commit 59996f2
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -134,6 +135,7 @@ private void configureTestTask(Project project, SourceSet mainSourceSet, SourceS
TaskProvider<TestTask> testTask = project.getTasks().register(Names.getTestTaskName(toolName), TestTask.class, new Action<TestTask>() {
@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());
Expand Down

0 comments on commit 59996f2

Please sign in to comment.