Skip to content

Commit 50f1e11

Browse files
committed
Auto merge of #10417 - davidpaulmcintyre:cargo-test-doc, r=alexcrichton
Documentation change to cargo-test.md i added helpful links in the src/man/carg-test.md to show reader how to write unit/integration tests. i made change to source at src/doc/man/cargo-test.md, then ran mdbook serve ./build-man.sh cargo fmt —all i tested links by viewing md page and its linked pages using mdbook serve <img width="960" alt="Screen Shot 2022-02-23 at 5 03 31 PM" src="https://user-images.githubusercontent.com/10999581/155435822-f4784513-5b0f-4e2c-8cf1-ede613f64e15.png">
2 parents d6cdde5 + 8db6be6 commit 50f1e11

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

src/doc/man/cargo-test.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,4 +178,4 @@ includes an option to control the number of threads used:
178178
cargo test --test int_test_name -- modname::test_name
179179

180180
## SEE ALSO
181-
{{man "cargo" 1}}, {{man "cargo-bench" 1}}
181+
{{man "cargo" 1}}, {{man "cargo-bench" 1}}, [types of tests](../reference/cargo-targets.html#tests), [how to write tests](https://doc.rust-lang.org/rustc/tests/index.html)

src/doc/man/generated_txt/cargo-test.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,5 +407,7 @@ EXAMPLES
407407
cargo test --test int_test_name -- modname::test_name
408408

409409
SEE ALSO
410-
cargo(1), cargo-bench(1)
410+
cargo(1), cargo-bench(1), types of tests
411+
<https://doc.rust-lang.org/cargo/reference/cargo-targets.html#tests>,
412+
how to write tests <https://doc.rust-lang.org/rustc/tests/index.html>
411413

src/doc/src/commands/cargo-test.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,4 +491,4 @@ details on environment variables that Cargo reads.
491491
cargo test --test int_test_name -- modname::test_name
492492

493493
## SEE ALSO
494-
[cargo(1)](cargo.html), [cargo-bench(1)](cargo-bench.html)
494+
[cargo(1)](cargo.html), [cargo-bench(1)](cargo-bench.html), [types of tests](../reference/cargo-targets.html#tests), [how to write tests](https://doc.rust-lang.org/rustc/tests/index.html)

src/etc/man/cargo-test.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,4 +529,4 @@ cargo test \-\-test int_test_name \-\- modname::test_name
529529
.RE
530530
.RE
531531
.SH "SEE ALSO"
532-
\fBcargo\fR(1), \fBcargo\-bench\fR(1)
532+
\fBcargo\fR(1), \fBcargo\-bench\fR(1), \fItypes of tests\fR <https://doc.rust\-lang.org/cargo/reference/cargo\-targets.html#tests>, \fIhow to write tests\fR <https://doc.rust\-lang.org/rustc/tests/index.html>

0 commit comments

Comments
 (0)