-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add JBang script that will be used by Jenkins job
- Loading branch information
1 parent
956b946
commit 6e8c98d
Showing
6 changed files
with
46 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
//usr/bin/env jbang "$0" "$@" ; exit $? | ||
|
||
//DEPS io.quarkus.qe:flaky-run-reporter:0.1.1.Beta1-SNAPSHOT | ||
|
||
import io.quarkus.qe.reporter.flakyrun.summary.FlakyRunSummaryReporter; | ||
|
||
public class FlakyTestRunSummarizer { | ||
public static void main(String... args) { | ||
try { | ||
new FlakyRunSummaryReporter(args).createReport(); | ||
System.exit(0); | ||
} catch (Exception e) { | ||
System.exit(1); | ||
} | ||
} | ||
} |
3 changes: 2 additions & 1 deletion
3
...yrun/FlakyRunReportingMavenExtension.java → ...sion/FlakyRunReportingMavenExtension.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...arkus/qe/reporter/flakyrun/FlakyTest.java → ...reporter/flakyrun/reporter/FlakyTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
src/main/java/io/quarkus/qe/reporter/flakyrun/summary/FlakyRunSummary.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package io.quarkus.qe.reporter.flakyrun.summary; | ||
|
||
import java.util.List; | ||
|
||
public record FlakyRunSummary(String projectName, String projectBaseDir, String testFullName, | ||
List<FlakyRunSummaryItem> flakes) { | ||
|
||
public record FlakyRunSummaryItem(String failureMessage, String failureType, String failureStackTrace, | ||
String dateTime) { | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
src/main/java/io/quarkus/qe/reporter/flakyrun/summary/FlakyRunSummaryReporter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package io.quarkus.qe.reporter.flakyrun.summary; | ||
|
||
public class FlakyRunSummaryReporter { | ||
public FlakyRunSummaryReporter(String[] args) { | ||
// FIXME impl. me! | ||
for (String arg : args) { | ||
System.out.println("system arg is " + arg); | ||
} | ||
} | ||
|
||
public void createReport() { | ||
|
||
} | ||
} |