summaryrefslogtreecommitdiff
path: root/render-test/metadata.hpp
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <tmpsantos@gmail.com>2019-12-16 00:49:04 +0200
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2019-12-16 22:52:01 +0200
commitad1a7c595d240ea22fcb2609f29626dd3b96c6be (patch)
tree45ed22079f7a062f57abcc920995fa9a36190d9a /render-test/metadata.hpp
parente298435206b6f7631a6e85f2e75544f201866909 (diff)
downloadqtlocation-mapboxgl-ad1a7c595d240ea22fcb2609f29626dd3b96c6be.tar.gz
[render-test] Cleanup on the render tests results
Simplify the code path and make it print both rendering error and metrics on fail.
Diffstat (limited to 'render-test/metadata.hpp')
-rw-r--r--render-test/metadata.hpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/render-test/metadata.hpp b/render-test/metadata.hpp
index 9a837f20ec..6b8e080471 100644
--- a/render-test/metadata.hpp
+++ b/render-test/metadata.hpp
@@ -167,11 +167,18 @@ struct TestMetadata {
std::string expected;
std::string diff;
+ TestMetrics metrics;
+ TestMetrics expectedMetrics;
+
+ // Results
+ unsigned metricsErrored = 0;
+ unsigned metricsFailed = 0;
+ unsigned renderErrored = 0;
+ unsigned renderFailed = 0;
+
std::string errorMessage;
double difference = 0.0;
- TestMetrics metrics;
- TestMetrics expectedMetrics;
};
class TestContext {
@@ -190,4 +197,4 @@ protected:
};
using TestOperation = std::function<bool(TestContext&)>;
-using TestOperations = std::list<TestOperation>; \ No newline at end of file
+using TestOperations = std::list<TestOperation>;