* [test,0.5h] add unit test for metric.

This commit is contained in:
zhouxin
2024-08-08 16:15:13 +08:00
committed by 宋辰轩
parent 150a1d0c3a
commit aa2ca91436
@@ -0,0 +1,20 @@
#!/usr/bin/env php
<?php
/**
title=count_of_case_in_execution
timeout=0
cid=1
*/
include dirname(__FILE__, 7) . '/test/lib/init.php';
include dirname(__FILE__, 4) . '/lib/calc.unittest.class.php';
zendata('product')->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__);