You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The docs for documentation tests (https://doc.rust-lang.org/rustdoc/documentation-tests.html) don't currently mention in which files doctests can be put. E.g. they work if put into src/* files, but not in integration test files in tests/*. It would be good if that was mentioned there.
The text was updated successfully, but these errors were encountered:
Documentation tests are also run by default, which is handled by rustdoc. It extracts code samples from documentation comments and executes them. See the rustdoc book for more information on writing doc tests.
(@GuillaumeGomez asked me to open an issue here, see his comment: GuillaumeGomez/doc-comment#25 (comment))
The docs for documentation tests (https://doc.rust-lang.org/rustdoc/documentation-tests.html) don't currently mention in which files doctests can be put. E.g. they work if put into
src/*
files, but not in integration test files intests/*
. It would be good if that was mentioned there.The text was updated successfully, but these errors were encountered: