aboutsummaryrefslogtreecommitdiff
path: root/src/cz/crcs/ectester/standalone/output/TextTestWriter.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/cz/crcs/ectester/standalone/output/TextTestWriter.java')
-rw-r--r--src/cz/crcs/ectester/standalone/output/TextTestWriter.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cz/crcs/ectester/standalone/output/TextTestWriter.java b/src/cz/crcs/ectester/standalone/output/TextTestWriter.java
index bf9ec7d..d7be4dc 100644
--- a/src/cz/crcs/ectester/standalone/output/TextTestWriter.java
+++ b/src/cz/crcs/ectester/standalone/output/TextTestWriter.java
@@ -33,10 +33,11 @@ public class TextTestWriter extends BaseTextTestWriter {
protected String testableString(Testable t) {
if (t instanceof StandaloneTestable) {
StandaloneTestable<?> testable = (StandaloneTestable) t;
- String stage = testable.getStage().name();
+ Enum<?> stage = testable.getStage();
+ String stageName = stage.name();
String exception = causeString(testable.getException());
String errorCause = causeString(testable.errorCause());
- return stage + exception + errorCause;
+ return String.format("[%d/%d] %s %s %s", stage.ordinal() + 1, stage.getClass().getEnumConstants().length, stageName, exception, errorCause);
}
return "";
}