evo-lua / evo-luvi

[Obsolete] Experimental Lua runtime environment built on Luvi (libuv + LuaJIT)
https://evo-lua.github.io
Apache License 2.0
1 stars 0 forks source link

The summary displayed after running unit tests is wrong when using nested calls #159

Open rdw-software opened 1 year ago

rdw-software commented 1 year ago

It clearly counts every call to describe and it as a separate test, which can be seen with a trivial example.

describe("something", function()
  it("should still only count as one test", function()
    -- This is the only test that should count
  end)
end)

This will display "3 tests complete", and so on. There may be some other scenarios where different behavior is needed?

rdw-software commented 1 year ago

Clearly caused by the mess in the C_Testing API (see #70 ). That's what you get when you commit prototypes, I guess 🤷‍♂️