Commit Graph

12 Commits

Author SHA1 Message Date
Robin Krahl
d0292a0dba
Add tests for Rust 1.52.1
This patch adds tests for Rust 1.52.1 by copying the snapshots from
1.52.0.
2021-06-06 11:52:00 +02:00
Robin Krahl
0a17d717d7
Add tests for Rust 1.52.0
This patch adds tests for Rust 1.52.0.  With Rust 1.52.0, the format of
the search index changed so we have to disable the search index tests.
Otherwise we can copy the snapshots with only small modifications taking
into account the change from simple quotes and apostrophes ("') to
typographically correct ones (“”’).
2021-06-06 11:51:49 +02:00
Robin Krahl
d7cc2dd6b9
Add tests for Rust 1.51.0
This patch adds test cases for Rust 1.51.0.  We have to disable the
struct_anyhow_error test case as the structure of the Deref method
sections has changed.
2021-06-06 11:23:01 +02:00
Robin Krahl
ea183be56d
Add tests for Rust 1.50.0
This patch adds tests for Rust 1.50.0 which we can mostly copy from
1.49.0.  There is only a small change to the abbreviated descriptions in
the search index and to edition-specific code.
2021-06-05 21:14:58 +02:00
Robin Krahl
c4e49a98ad
Add tests for Rust 1.49.0
This patch adds tests for Rust 1.49.0 which we can just copy from 1.48.0
as there were no changes.
2021-06-05 21:08:03 +02:00
Robin Krahl
4ed21183df
Add tests for Rust 1.48.0
With Rust 1.48.0, support for link shorthands, i. e. `[Test]` instead of
`[Test][]`, was added.  Therefore, some of the links are now rendered
correctly.  Otherwise we can just copy the snapshots and don’t need any
code changes.
2021-06-05 21:02:58 +02:00
Robin Krahl
9832c22b4d
Add tests for Rust 1.47.0
This patch adds unit tests for the new Rust 1.47.0 release.  Except for
the new Notable Traits section, we’re already parsing the output
correctly.
2020-10-08 21:07:52 +02:00
Robin Krahl
0c38bf9606
Remove suffix from duplicate members
We use the HTML ID of a member element to get its name.  If there are
multiple members with the same type and name (e. g. from a Deref
implementation), the ID has a suffix to make it unique.  Previosuly, we
just interpreted this suffix as part of the name.  With this patch, we
strip the suffix and only use the actual name.
2020-09-17 17:04:53 +02:00
Robin Krahl
229b1bdd5c
Add test suite for Rust 1.46.0 2020-09-11 20:30:19 +02:00
Robin Krahl
628377c83b
Refactor test suite to check multiple versions
This patch refactors the test suite:
- Instead of always generating the documentation with the available
  rustdoc version, we now store generated documentation for all
  supported rustdoc versions in the test/html directory.
- Instead of using one snapshot per test case, we now use one snapshot
  per test case and rustdoc version.
2020-09-11 20:30:05 +02:00
Robin Krahl
28c025fd4f
Add --width and --max-width options
This patch adds the --width option to select a fixed output width and
the --max-width to set a maximum output width if the width is
dynamically set using the terminal size.
2020-08-11 09:42:21 +02:00
Robin Krahl
1a518d7509
Add integration tests
This patch adds an integration test suite using the insta crate for
snapshot testing.  The test suite is tested for all supported Rust
versions and should always succeed for the MSRV (currently 1.40.0) and
the current stable Rust version.

However there are some minor changes in the configuration format between
Rust versions, so tests that don’t work on all supported Rust versions
are marked with the ignore attribute.  But even the ignored tests should
work on the stable Rust release.
2020-08-11 09:31:20 +02:00