Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rdw-software opened this issue Dec 15, 2022 · 1 comment

Comments

@rdw-software
Copy link
Member

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
Copy link
Member Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant