]> git.lizzy.rs Git - rust.git/commit
rustdoc: add the ability to run tests with --test.
authorHuon Wilson <dbau.pp+github@gmail.com>
Thu, 19 Jun 2014 13:11:18 +0000 (23:11 +1000)
committerHuon Wilson <dbau.pp+github@gmail.com>
Thu, 19 Jun 2014 13:11:18 +0000 (23:11 +1000)
commit11bdeea76734e1c756246373db23d5db29632ce8
treee368926ba64ac1d64a7b56900820283ea007bef1
parenta17b0421d35af1609184ce83e05b211d779958f0
rustdoc: add the ability to run tests with --test.

This adds the `test_harness` directive that runs a code block using the
test runner, to allow for `#[test]` items to be demonstrated and still
tested (currently they are just stripped and not even compiled, let
alone run).
src/doc/rustdoc.md
src/librustdoc/html/markdown.rs
src/librustdoc/test.rs