* Fix unit test of calc in metric module.

This commit is contained in:
zhouxin
2023-12-23 15:22:22 +08:00
parent bb0139d008
commit 33246ebe39
4 changed files with 5 additions and 5 deletions
@@ -16,4 +16,4 @@ zdTable('product')->config('product', true, 4)->gen(10);
$metric = new metricTest();
$calc = $metric->calcMetric(__FILE__);
r($calc->getResult()) && p('') && e('30'); // 测试按全局统计的已完成研发需求规模数
r($calc->getResult()) && p('0:value') && e('30'); // 测试按全局统计的已完成研发需求规模数
@@ -16,4 +16,4 @@ zdTable('product')->config('product', true, 4)->gen(10);
$metric = new metricTest();
$calc = $metric->calcMetric(__FILE__);
r($calc->getResult()) && p('') && e('140'); // 测试按全局统计的无效研发需求规模数
r($calc->getResult()) && p('0:value') && e('140'); // 测试按全局统计的无效研发需求规模数
@@ -16,4 +16,4 @@ zdTable('product')->config('product', true, 4)->gen(10);
$metric = new metricTest();
$calc = $metric->calcMetric(__FILE__);
r($calc->getResult()) && p('') && e('280'); // 测试按全局统计的所有研发需求规模数
r($calc->getResult()) && p('0:value') && e('280'); // 测试按全局统计的所有研发需求规模数
@@ -2,7 +2,7 @@
<?php
/**
title=scale_of_invalid_story
title=scale_of_valid_story
timeout=0
cid=1
@@ -16,4 +16,4 @@ zdTable('product')->config('product', true, 4)->gen(10);
$metric = new metricTest();
$calc = $metric->calcMetric(__FILE__);
r($calc->getResult()) && p('') && e('140'); // 测试按全局统计的有效研发需求规模数
r($calc->getResult()) && p('0:value') && e('140'); // 测试按全局统计的有效研发需求规模数