Skip to content

Conversation

@GuillaumeGomez
Copy link

It allows to test code examples in the README.md file.

@dguo
Copy link
Member

dguo commented Jul 23, 2019

Hi, should the tests be showing up in the CI output? I don't see them.

@GuillaumeGomez
Copy link
Author

It only works on nightly for the moment. Also, I need to update this PR since it's not #[cfg(test)] anymore... I'll add a run for cargo test on your CI script as well.

@GuillaumeGomez
Copy link
Author

For the time being, you can run the readme doc tests by using the "readme" feature (if we're lucky, doctest should be stabilized pretty quickly...) by doing:

cargo test --features readme

And normally you should see with the tests output:

test <::doc_comment::doc_comment macros> -  (line 65) ... ok
test <::doc_comment::doc_comment macros> -  (line 31) ... ok

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

Successfully merging this pull request may close these issues.

2 participants