about summary refs log tree commit diff
path: root/src/doc/guide-testing.md
AgeCommit message (Collapse)AuthorLines
2019-02-13Convert old doc links to current editionLzu Tao-1/+1
Use footnote style to bypass the tidy check
2015-01-16Grammar tweak to old guide stub documents.Tim Parenti-1/+1
Removes extra "the" from the phrase "the the Rust Programming Language book", which isn't particularly grammatical.
2015-01-09Add stub deprecation files for each of the old guides.Huon Wilson-0/+4
There are hundreds of stackoverflow answers, reddit posts and blog articles that link to these documents, so it's a nicer user experience if they're not plain 404s. The intention is to let these hang around only for relatively short while. The alpha is likely to bring in many new users and they will be reading the documents mentioned above.
2015-01-08"The Rust Programming Language"Steve Klabnik-584/+0
This pulls all of our long-form documentation into a single document, nicknamed "the book" and formally titled "The Rust Programming Language." A few things motivated this change: * People knew of The Guide, but not the individual Guides. This merges them together, helping discoverability. * You can get all of Rust's longform documentation in one place, which is nice. * We now have rustbook in-tree, which can generate this kind of documentation. While its style is basic, the general idea is much better: a table of contents on the left-hand side. * Rather than a almost 10,000-line guide.md, there are now smaller files per section.
2015-01-05rollup merge of #19888: steveklabnik/gh19861Alex Crichton-2/+11
Fixes #19861 /cc @huonw
2015-01-05unignore and fix doctests in guide and referenceJorge Aparicio-4/+6
2015-01-05ignore boxed closure doctests in the guide/referenceJorge Aparicio-2/+2
2014-12-27restore paragraphSteve Klabnik-2/+9
Fixes #19861
2014-12-27Add header to optimizations sectionSteve Klabnik-0/+2
2014-12-16guide-ownership.md, guide-testing.md: fix typosPhilipp Gesang-1/+1
Signed-off-by: Philipp Gesang <phg@phi-gamma.net>
2014-12-13Revamped testing guideSteve Klabnik-255/+450
2014-12-07Mention expected in testing docsSteven Fackler-0/+15
2014-11-17Fix fallout from coercion removalNick Cameron-1/+1
2014-11-01Guide: Fix variable nameDaniel Hofstetter-1/+1
2014-10-29Rename fail! to panic!Steve Klabnik-2/+2
https://github.com/rust-lang/rfcs/pull/221 The current terminology of "task failure" often causes problems when writing or speaking about code. You often want to talk about the possibility of an operation that returns a Result "failing", but cannot because of the ambiguity with task failure. Instead, you have to speak of "the failing case" or "when the operation does not succeed" or other circumlocutions. Likewise, we use a "Failure" header in rustdoc to describe when operations may fail the task, but it would often be helpful to separate out a section describing the "Err-producing" case. We have been steadily moving away from task failure and toward Result as an error-handling mechanism, so we should optimize our terminology accordingly: Result-producing functions should be easy to describe. To update your code, rename any call to `fail!` to `panic!` instead. Assuming you have not created your own macro named `panic!`, this will work on UNIX based systems: grep -lZR 'fail!' . | xargs -0 -l sed -i -e 's/fail!/panic!/g' You can of course also do this by hand. [breaking-change]
2014-09-23Deprecate `#[ignore(cfg(...))]`Steven Fackler-2/+2
Replace `#[ignore(cfg(a, b))]` with `#[cfg_attr(all(a, b), ignore)]`
2014-08-12guide-testing.md: add auxiliary verbPhilipp Gesang-1/+1
2014-06-24librustc: Remove the fallback to `int` from typechecking.Niko Matsakis-3/+3
This breaks a fair amount of code. The typical patterns are: * `for _ in range(0, 10)`: change to `for _ in range(0u, 10)`; * `println!("{}", 3)`: change to `println!("{}", 3i)`; * `[1, 2, 3].len()`: change to `[1i, 2, 3].len()`. RFC #30. Closes #6023. [breaking-change]
2014-06-20testing guide: update to use `test_harness` & fix problems.Huon Wilson-25/+21
rustdoc now supports compiling things with `--test` so the examples in this guide can be compiled & tested properly (revealing a few issues & out-dated behaviours). Also, reword an example to be clearer, cc #12242.
2014-06-02docs: Stop using `notrust`Florian Gilcher-9/+9
Now that rustdoc understands proper language tags as the code not being Rust, we can tag everything properly. This change tags examples in other languages by their language. Plain notations are marked as `text`. Console examples are marked as `console`. Also fix markdown.rs to not highlight non-rust code.
2014-05-15test: allow the test filter to be a regex.Huon Wilson-7/+27
This is fully backwards compatible, since test names are Rust identifiers + `:`, and hence not special regex characters. Fixes #2866.
2014-04-14auto merge of #13477 : Manishearth/rust/newattr, r=brsonbors-2/+2
See #13476
2014-04-12Update tutorials to use new attribute syntax (#13476)Manish Goregaokar-2/+2
2014-04-11libtest: rename `BenchHarness` to `Bencher`Liigo Zhuang-7/+7
Closes #12640
2014-03-20rename std::vec -> std::sliceDaniel Micay-3/+3
Closes #12702
2014-03-09docs: adjust code blocks to pass with rustdoc.Huon Wilson-0/+10
The changes are basically just because rustdoc runs tests/rendering on more snippets by default (i.e. everything without a `notrust` tag), and not anything significant.
2014-02-20move extra::test to libtestLiigo Zhuang-8/+9
2014-02-14extern mod => extern crateAlex Crichton-2/+2
This was previously implemented, and it just needed a snapshot to go through
2014-02-09Expand the testing guide to cover optimizations, benchmarks and how toHuon Wilson-56/+130
be more precise about what's being benchmarked. Also, reorganise the layout a bit, to put examples directly in their sections.
2014-02-02Move doc/ to src/doc/Alex Crichton-0/+262
We generate documentation into the doc/ directory, so we shouldn't be intermingling source files with generated files