-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
Fix #12939: reporting of ignored tests in rustdoc #13272
Conversation
@@ -279,13 +279,12 @@ pub fn find_testable_code(doc: &str, tests: &mut ::test::Collector) { | |||
s.contains("ignore") || s.contains("notrust")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This condition should change slightly I think. It should consider ignore
as "print this during the test run, but don't run it" and notrust
as "ignore this entirely for testing".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a really good point, hadn't thought about that!
I'm a little confused about the changes to #[test] fn a() {}
#[ignore] #[test] fn b() {}
|
librustdoc: instead of skipping ignored tests, pass them to libtest so it can report them as such. If a test is marked as `notrust`, however, it will not show up in the final report.
Sorry I should have made this clearer: this change affects running documentation tests under rustdoc, e.g.
This is the result I get after building from master, when it should really output
Looking over the diff again I just realized my misunderstanding of some code in libtest. I (wrongly) believed that libtest was also dropping tests marked as |
Updated the PR branch, and re-rebased on master |
…hton librustdoc: instead of skipping ignored tests, pass them to libtest so it can report them as such. If a test is marked as `notrust`, however, it will not show up in the final report. Fix #12939
docs(guide): fix Analysis and AnalysisHost doc links
flip1995: 2 week vacation r? `@ghost` changelog: none
librustdoc: instead of skipping ignored tests, pass them to libtest
so it can report them as such. If a test is marked as
notrust
,however, it will not show up in the final report.
Fix #12939