Skip to content

Commit

Permalink
Merge pull request #70 from MontiCore/gradle-test-info
Browse files Browse the repository at this point in the history
Run Gradle tests with --info
  • Loading branch information
luepges authored Dec 11, 2024
2 parents 6497915 + 3da81e1 commit 031fdd7
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ void testGenerateGrammar(String version) throws IOException {
.withPluginClasspath()
.withGradleVersion(version)
.withProjectDir(testProjectDir)
.withArguments("generateMCGrammars", "--build-cache")
.withArguments("generateMCGrammars", "--build-cache", "--info")
.build();

// file MyTestGrammar is worked on
Expand All @@ -141,7 +141,7 @@ void testGenerateGrammar(String version) throws IOException {
.withPluginClasspath()
.withGradleVersion(version)
.withProjectDir(testProjectDir)
.withArguments("generateMCGrammars", "--build-cache")
.withArguments("generateMCGrammars", "--build-cache", "--info")
.build();
// and then check, that the build cache was used
Assert.assertEquals("generateMCGrammars was not cached",
Expand All @@ -156,7 +156,7 @@ void testGenerateGrammar(String version) throws IOException {
.withPluginClasspath()
.withGradleVersion(version)
.withProjectDir(testProjectDir)
.withArguments("generateMCGrammars", "--build-cache")
.withArguments("generateMCGrammars", "--build-cache", "--info")
.build();
// and the task was successful
Assert.assertEquals(SUCCESS, result.task(":generateMCGrammars").getOutcome());
Expand All @@ -172,7 +172,7 @@ void testGenerateGrammar(String version) throws IOException {
.withPluginClasspath()
.withGradleVersion(version)
.withProjectDir(testProjectDir)
.withArguments("generateMCGrammars", "--build-cache")
.withArguments("generateMCGrammars", "--build-cache", "--info")
.build();
// Nothing SHOULD not be up-to-date
Assert.assertFalse(result.getOutput(), result.getOutput().contains("MyTestGrammar.mc4 is UP-TO-DATE, no action required"));
Expand Down

0 comments on commit 031fdd7

Please sign in to comment.