Przeglądaj źródła

introduced test_view_format_view_prometheus_stdout

Gregory Laplace 4 lat temu
rodzic
commit
ba3aae1a75

+ 3 - 0
metrixpp/tests/general/test_basic.py

@@ -227,6 +227,9 @@ class Test(tests.common.TestCase):
         runner = tests.common.ToolRunner('view', ['--format=xml'], prefix='xml')
         self.assertExec(runner.run())
         
+        runner = tests.common.ToolRunner('view', ['--format=prometheus'], prefix='prometheus')
+        self.assertExec(runner.run())
+        
         runner = tests.common.ToolRunner('collect',
                                          ['--std.code.complexity.cyclomatic'],
                                          prefix='nest',

+ 6 - 0
metrixpp/tests/general/test_basic/test_view_format_view_prometheus_stdout.gold.txt

@@ -0,0 +1,6 @@
+std_code_complexity_cyclomatic_avg {file="./"} 1.375
+std_code_complexity_cyclomatic_min {file="./"} 1
+std_code_complexity_cyclomatic_max {file="./"} 3
+std_code_complexity_cyclomatic_total {file="./"} 11.0
+
+