-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43119 from ueberfuhr-opensource-forks/feature/ref…
…actor-continuous-testing-rpc Refactor Continuous Testing JSON/RPC
- Loading branch information
Showing
10 changed files
with
524 additions
and
173 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
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
16 changes: 16 additions & 0 deletions
16
core/devmode-spi/src/main/java/io/quarkus/dev/testing/results/TestClassResultInterface.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,16 @@ | ||
package io.quarkus.dev.testing.results; | ||
|
||
import java.util.List; | ||
|
||
public interface TestClassResultInterface extends Comparable<TestClassResultInterface> { | ||
|
||
String getClassName(); | ||
|
||
List<? extends TestResultInterface> getResults(); | ||
|
||
@Override | ||
default int compareTo(TestClassResultInterface o) { | ||
return getClassName().compareTo(o.getClassName()); | ||
} | ||
|
||
} |
34 changes: 34 additions & 0 deletions
34
core/devmode-spi/src/main/java/io/quarkus/dev/testing/results/TestResultInterface.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,34 @@ | ||
package io.quarkus.dev.testing.results; | ||
|
||
import java.util.List; | ||
|
||
public interface TestResultInterface { | ||
List<String> getLogOutput(); | ||
|
||
String getDisplayName(); | ||
|
||
String getTestClass(); | ||
|
||
List<String> getTags(); | ||
|
||
boolean isTest(); | ||
|
||
String getId(); | ||
|
||
long getRunId(); | ||
|
||
long getTime(); | ||
|
||
List<Throwable> getProblems(); | ||
|
||
boolean isReportable(); | ||
|
||
State getState(); | ||
|
||
enum State { | ||
PASSED, | ||
FAILED, | ||
SKIPPED | ||
} | ||
|
||
} |
31 changes: 31 additions & 0 deletions
31
core/devmode-spi/src/main/java/io/quarkus/dev/testing/results/TestRunResultsInterface.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,31 @@ | ||
package io.quarkus.dev.testing.results; | ||
|
||
import java.util.Map; | ||
|
||
public interface TestRunResultsInterface { | ||
long getId(); | ||
|
||
Map<String, ? extends TestClassResultInterface> getResults(); | ||
|
||
long getStartedTime(); | ||
|
||
long getCompletedTime(); | ||
|
||
long getTotalTime(); | ||
|
||
long getPassedCount(); | ||
|
||
long getFailedCount(); | ||
|
||
long getSkippedCount(); | ||
|
||
long getCurrentPassedCount(); | ||
|
||
long getCurrentFailedCount(); | ||
|
||
long getCurrentSkippedCount(); | ||
|
||
long getTotalCount(); | ||
|
||
long getCurrentTotalCount(); | ||
} |
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
Oops, something went wrong.