From aa2ca91436bd36f757088807352f36ee8e143249 Mon Sep 17 00:00:00 2001 From: zhouxin Date: Thu, 8 Aug 2024 15:21:19 +0800 Subject: [PATCH] * [test,0.5h] add unit test for metric. --- .../scale/count_of_case_in_execution.php | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 module/metric/test/calc/execution/scale/count_of_case_in_execution.php diff --git a/module/metric/test/calc/execution/scale/count_of_case_in_execution.php b/module/metric/test/calc/execution/scale/count_of_case_in_execution.php new file mode 100644 index 0000000000..ccc9f9a1c4 --- /dev/null +++ b/module/metric/test/calc/execution/scale/count_of_case_in_execution.php @@ -0,0 +1,20 @@ +#!/usr/bin/env php +loadYaml('product', true, 4)->gen(10); +zendata('project')->loadYaml('project_type', true, 4)->gen(100); +zendata('case')->loadYaml('case', true, 4)->gen(1000); +zendata('projectcase')->loadYaml('projectcase', true, 4)->gen(1000); + +$metric = new metricTest(); +$calc = $metric->calcMetric(__FILE__);