Skip to content

TAP plan count doesn't match the output #56

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

Closed
lazka opened this issue Nov 7, 2020 · 3 comments
Closed

TAP plan count doesn't match the output #56

lazka opened this issue Nov 7, 2020 · 3 comments

Comments

@lazka
Copy link

lazka commented Nov 7, 2020

I have a test suite which looks roughly like

1..1234
ok 1 foo
...
ok 900 bar

The first line references a larger amount of tests than are actually in the output, which my TAP consumer doesn't like and treats as an error. I haven't looked into creating something reproducible yet, but I thought I'd file it anyway for now.

@mblayman
Copy link
Member

mblayman commented Nov 7, 2020

Can you share the total that your normal pytest run would show? The plugin sets the plan based on how many tests pytest discovers during collection.

https://github.com/python-tap/pytest-tap/blob/master/src/pytest_tap/plugin.py#L79

@lazka
Copy link
Author

lazka commented Nov 7, 2020

uh, now I can no longer reproduce.. and it matches exactly. Sorry for the noise :/

@lazka lazka closed this as completed Nov 7, 2020
@mblayman
Copy link
Member

mblayman commented Nov 7, 2020

No problem! I don't have a use case for pytest-tap currently so I'm not keeping up with pytest versions, and I really appreciate your actual user feedback.

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

No branches or pull requests

2 participants