From 7ef464ab2c2a6a2e0b9ee857d6979ab98f1ec930 Mon Sep 17 00:00:00 2001 From: Thibault Gagnaux Date: Fri, 11 Feb 2022 13:58:28 +0100 Subject: refactor: finishes the compileFregeTask refactoring --- .../fhnw/thga/gradleplugins/SharedFunctionalTestLogic.java | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'src/functionalTest/java/ch/fhnw/thga/gradleplugins/SharedFunctionalTestLogic.java') diff --git a/src/functionalTest/java/ch/fhnw/thga/gradleplugins/SharedFunctionalTestLogic.java b/src/functionalTest/java/ch/fhnw/thga/gradleplugins/SharedFunctionalTestLogic.java index a0d46a4..3b4ee49 100644 --- a/src/functionalTest/java/ch/fhnw/thga/gradleplugins/SharedFunctionalTestLogic.java +++ b/src/functionalTest/java/ch/fhnw/thga/gradleplugins/SharedFunctionalTestLogic.java @@ -53,15 +53,25 @@ public class SharedFunctionalTestLogic return destination; } - static BuildResult runGradleTask(File testProjectDir, String... taskName) + static BuildResult runGradleTask(File testProjectDir, String... args) { return GradleRunner .create() .withProjectDir(testProjectDir) .withPluginClasspath() - .withArguments(taskName) + .withArguments(args) .build(); } + + static BuildResult runAndFailGradleTask(File testProjectDir, String... args) + { + return GradleRunner + .create() + .withProjectDir(testProjectDir) + .withPluginClasspath() + .withArguments(args) + .buildAndFail(); + } static File createSettingsFile(File testProjectDir) throws IOException { -- cgit