ciscoheat / buddy

Your friendly BDD testing library for Haxe!
MIT License
96 stars 24 forks source link

Fix a bug that prints the nested suite description in a strange order. #74

Closed terurou closed 6 years ago

terurou commented 6 years ago

TraceReporter is broken in buddy 2.9.0.

class TestMain extends buddy.SingleSuite {
    public function new() {
        describe("root", {
            describe("sub", {
                it("should pass", { 1.should.be(1); });
            });
        });
    }
}

result

.
  sub
    should pass (Passed)
root
1 specs, 0 failures, 0 pending
ciscoheat commented 6 years ago

I was just about to look at that one, thank you for fixing it!

kLabz commented 6 years ago

Err, didn't see this issue =/