From 26201eb016450318ed60b390839d2a11e6477eb9 Mon Sep 17 00:00:00 2001 From: Francois Hervieux Date: Mon, 16 Jul 2018 16:52:33 +0200 Subject: [PATCH] Include failure text in test result --- .../groovy/com/ullink/testtools/elastic/TestExportTask.groovy | 1 + .../groovy/com/ullink/testtools/elastic/models/Result.groovy | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/groovy/com/ullink/testtools/elastic/TestExportTask.groovy b/src/main/groovy/com/ullink/testtools/elastic/TestExportTask.groovy index 3c438ca..4639997 100644 --- a/src/main/groovy/com/ullink/testtools/elastic/TestExportTask.groovy +++ b/src/main/groovy/com/ullink/testtools/elastic/TestExportTask.groovy @@ -171,6 +171,7 @@ class TestExportTask extends Exec { result.with { failureMessage = node.@message failureType = node.@type + failureText = node.text() resultType = TestResult.ResultType.FAILURE } } diff --git a/src/main/groovy/com/ullink/testtools/elastic/models/Result.groovy b/src/main/groovy/com/ullink/testtools/elastic/models/Result.groovy index 95b3a5e..d47612f 100644 --- a/src/main/groovy/com/ullink/testtools/elastic/models/Result.groovy +++ b/src/main/groovy/com/ullink/testtools/elastic/models/Result.groovy @@ -8,7 +8,8 @@ class Result { float executionTime String failureMessage String failureType + String failureText TestResult.ResultType resultType String timestamp Map properties -} \ No newline at end of file +}