catchorg / Catch2

A modern, C++-native, test framework for unit-tests, TDD and BDD - using C++14, C++17 and later (C++11 support is in v2.x branch, and C++03 on the Catch1.x branch)
https://discord.gg/4CWS9zD
Boost Software License 1.0
18.51k stars 3.04k forks source link

Introduce box plot drawing script #2869

Open serpent7776 opened 5 months ago

serpent7776 commented 5 months ago

Description

This adds a script that is drawing a box plot from the BENCHMARK measurement data. It is implemented in R using XML and ggplot2 libraries. Xml reporter has been adjusted to include the measurement data.

Each TEST_CASE is drawn as a single plot and then exported as a png file named after the test case, with spaces replaced with underscore. All plots are also saved to a single file Rplots.pdf. Tests that don't have any measurement data are skipped.

GitHub Issues

N/A

Example plots from existing benchmark tests:

Failing_benchmarks Benchmark_containers Benchmark_Fibonacci Skip_benchmark_macros

codecov[bot] commented 5 months ago

Codecov Report

Attention: Patch coverage is 0% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 90.95%. Comparing base (fa5a53d) to head (95fa9b2).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## devel #2869 +/- ## ========================================== - Coverage 90.99% 90.95% -0.04% ========================================== Files 198 198 Lines 8391 8395 +4 ========================================== Hits 7635 7635 - Misses 756 760 +4 ```