Haxe 中的代码覆盖率

Code coverage in 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();
    }
}

现在,在我的测试 运行 之后,我想分析我的代码的哪些行被测试了,哪些没有被测试(代码覆盖率)......或者至少看看某个 class 已在测试期间执行 运行 (只是为了防止我没有忘记测试任何功能)。我该怎么做?

MCover is currently the only real option at the moment. There is also one called coverme,但还不能 public 使用。