aboutsummaryrefslogtreecommitdiff
path: root/src/functionalTest/java/ch/fhnw/thga/gradleplugins/SharedFunctionalTestLogic.java
diff options
context:
space:
mode:
authorThibault Gagnaux <tgagnaux@gmail.com>2022-02-11 13:58:28 +0100
committerThibault Gagnaux <tgagnaux@gmail.com>2022-02-11 13:58:28 +0100
commit7ef464ab2c2a6a2e0b9ee857d6979ab98f1ec930 (patch)
tree923b369a85f6c47f8ceee01ddebcd1b8606abb05 /src/functionalTest/java/ch/fhnw/thga/gradleplugins/SharedFunctionalTestLogic.java
parent0aa4dd065ee78f9acc88b39625cc4a9b47f6c944 (diff)
downloadfrege-gradle-plugin-7ef464ab2c2a6a2e0b9ee857d6979ab98f1ec930.tar.gz
frege-gradle-plugin-7ef464ab2c2a6a2e0b9ee857d6979ab98f1ec930.tar.bz2
frege-gradle-plugin-7ef464ab2c2a6a2e0b9ee857d6979ab98f1ec930.zip
refactor: finishes the compileFregeTask refactoring
Diffstat (limited to 'src/functionalTest/java/ch/fhnw/thga/gradleplugins/SharedFunctionalTestLogic.java')
-rw-r--r--src/functionalTest/java/ch/fhnw/thga/gradleplugins/SharedFunctionalTestLogic.java14
1 files changed, 12 insertions, 2 deletions
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
{