-
Notifications
You must be signed in to change notification settings - Fork 1
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
Missing doc tests #12
Comments
Is there any reproducible code? The error shows the amount of last type test is 31 directly from the raw output, but zero tests are actually computed afterr parsing. Or try the patch to see if it works as expected: |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as outdated.
This comment was marked as outdated.
I can reproduce it now. But it's late now. I'll check it out tomorrow. |
OK. No worries. I would do it, but I have to review the whole code first. You have done a lot! |
Found the crux: the regex for parsing doc test items is the literally doc, but should be a
And it seems to be an additional part
cargo-pretty-test/src/regex.rs Line 48 in fde2b43
|
close josecelano#12 add more doc tests to integration test
Good catch! That regex deserves a crate for itself :-) |
#20 already contains full rustdoc attributes tests 88726b6#diff-b2c08f496e9c45b70893a9e0fc514f87cd9483de279fa6d1114c26f693b172a6R43 so I think the regex for doc tests is tested. |
The whole
cargo test
output I'm using:cargo_test_ouput.txt
The text was updated successfully, but these errors were encountered: