diff --git a/web/tests/functional/store/test_store.py b/web/tests/functional/store/test_store.py index 9bcf3a8151..d4cd7473a7 100644 --- a/web/tests/functional/store/test_store.py +++ b/web/tests/functional/store/test_store.py @@ -492,3 +492,23 @@ def test_store_limit(self): _, out, _ = _call_cmd(store_cmd) self.assertIn("Report Limit Exceeded", out) + + def test_store_stats(self): + """ + Tests that the statistics printed during the store command + are deduplicated. + """ + + run_name = "stats_test" + store_cmd = [ + env.codechecker_cmd(), "store", + self._same_headers_workspace, + "--name", run_name, + "--url", env.parts_to_url(self._codechecker_cfg, 'test_project') + ] + + _, out, _ = _call_cmd(store_cmd) + # There are 9 individual reports, but only 6 unique. + # The statistics should only print the unique ones. + self.assertIn("Number of analyzer reports | 6", + out)