-
expected
-
% difference
-
actual
)template";
constexpr const char * html_footer = R"template(
diff --git a/test/visual/report.hpp b/test/visual/report.hpp
index 3b6146ec5..bb21bafd0 100644
--- a/test/visual/report.hpp
+++ b/test/visual/report.hpp
@@ -36,7 +36,7 @@ namespace visual_tests
class console_report
{
public:
- console_report() : s(std::clog)
+ console_report(bool _show_duration) : s(std::clog), show_duration(_show_duration)
{
}
@@ -49,16 +49,17 @@ public:
protected:
std::ostream & s;
+ bool show_duration;
};
class console_short_report : public console_report
{
public:
- console_short_report() : console_report()
+ console_short_report(bool _show_duration) : console_report(_show_duration)
{
}
- console_short_report(std::ostream & s) : console_report(s)
+ console_short_report(std::ostream & _s) : console_report(_s)
{
}
diff --git a/test/visual/run.cpp b/test/visual/run.cpp
index d44508188..70284bc3e 100644
--- a/test/visual/run.cpp
+++ b/test/visual/run.cpp
@@ -43,17 +43,59 @@ log_levels_map log_levels
};
#endif
+using namespace visual_tests;
+namespace po = boost::program_options;
+
+runner::renderer_container create_renderers(po::variables_map const & args,
+ boost::filesystem::path const & output_dir,
+ bool append_all = false)
+{
+ boost::filesystem::path reference_dir(args["images-dir"].as