qua*_*ant 5 code-coverage haxe
假设我有一个这样的单元测试:
import haxe.unit.TestRunner;
import haxe.unit.TestCase;
class MyTests extends haxe.unit.TestCase {
public function testSomething():Void {
// ...
}
public function testSomethingElse():Void {
// ...
}
public static function main():Void {
var tr = new TestRunner();
tr.add(new MyTests());
tr.run();
}
}
Run Code Online (Sandbox Code Playgroud)
现在,在运行测试之后,我想分析我的代码的哪些行经过了测试,哪些没有经过测试(代码覆盖率)...或者至少查看在测试运行期间执行了某个类的哪些函数(只是为了防止出现这种情况)我没有忘记测试任何功能)。我怎样才能做到这一点?