* [test,0.5h] add unit test for metric.
This commit is contained in:
@@ -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__);
|
||||
Reference in New Issue
Block a user