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

Problem with mocks in doctests #36

Closed
lipanski opened this issue Jun 10, 2018 · 0 comments
Closed

Problem with mocks in doctests #36

lipanski opened this issue Jun 10, 2018 · 0 comments
Labels

Comments

@lipanski
Copy link
Owner

lipanski commented Jun 10, 2018

It seems that creating/asserting mocks inside doctests can produce flickering test runs. The two flickering tests are the ones under # Asserts in src/lib.rs. For some reason, doctests seem to be treated differently than unit tests in Rust.

The current workaround is to run doctests separately from unit tests with cargo test --doc -- --test-threads=1.

@lipanski lipanski added the bug label Jun 10, 2018
sterlingjensen added a commit to sterlingjensen/mockito that referenced this issue Nov 17, 2018
Fixes lipanski#41 and lipanski#36

Substitute [http_muncher] with [httparse]
lipanski pushed a commit that referenced this issue Nov 18, 2018
Fixes #41 and #36

Substitute [http_muncher] with [httparse]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant