Skip to content

Commit

Permalink
Shorten notation of test files.
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrolamarao committed Oct 10, 2023
1 parent 3b61c0f commit 2d0bdf6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public void apply () throws IOException
metal {
applications {
named("main") {
main {
linkOptions = listOf()
}
}
Expand All @@ -36,7 +36,6 @@ public void apply () throws IOException
GradleRunner.create()
.withPluginClasspath()
.withProjectDir(projectDir.toFile())
.withDebug(true)
.build();
}

Expand All @@ -53,12 +52,12 @@ public void language (String language) throws IOException
metal {
%s {
named("main") {
main {
compileOptions = listOf()
}
}
applications {
named("main") {
main {
archiveOptions = listOf()
}
}
Expand All @@ -69,7 +68,6 @@ public void language (String language) throws IOException
GradleRunner.create()
.withPluginClasspath()
.withProjectDir(projectDir.toFile())
.withDebug(true)
.build();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public void apply () throws IOException
metal {
archives {
named("main") {
main {
archiveOptions = listOf()
}
}
Expand All @@ -36,7 +36,6 @@ public void apply () throws IOException
GradleRunner.create()
.withPluginClasspath()
.withProjectDir(projectDir.toFile())
.withDebug(true)
.build();
}

Expand All @@ -53,12 +52,12 @@ public void language (String language) throws IOException
metal {
%s {
named("main") {
main {
compileOptions = listOf()
}
}
archives {
named("main") {
main {
archiveOptions = listOf()
}
}
Expand All @@ -69,7 +68,6 @@ public void language (String language) throws IOException
GradleRunner.create()
.withPluginClasspath()
.withProjectDir(projectDir.toFile())
.withDebug(true)
.build();
}

Expand Down Expand Up @@ -101,8 +99,7 @@ int main (int argc, char * argv[])
GradleRunner.create()
.withPluginClasspath()
.withProjectDir(projectDir.toFile())
.withDebug(true)
.withArguments("link-test")
.withArguments("run-test")
.build();
}
}

0 comments on commit 2d0bdf6

Please sign in to comment.