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

Incorrect test count when nesting describe #10

Open
luttje opened this issue Dec 2, 2024 · 0 comments
Open

Incorrect test count when nesting describe #10

luttje opened this issue Dec 2, 2024 · 0 comments
Assignees
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@luttje
Copy link
Owner

luttje commented Dec 2, 2024

The test counts are incorrect, which becomes obvious when nesting describes

Reproducing

Our tests/init.lua without describe:

require "tests/all"

Results in 30 skipped, 188 passed, 218 total

With an extra describe around it:

describe('all tests', function()
    require "tests/all"
end)

Results in 30 skipped, 138 passed, 168 total

@luttje luttje added bug Something isn't working good first issue Good for newcomers labels Dec 2, 2024
@luttje luttje mentioned this issue Dec 3, 2024
8 tasks
@luttje luttje self-assigned this Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant