424 Commits

Author SHA1 Message Date
Ed Page
9a8ca867e2 chore: Bump cargo-test-support's version 2024-12-12 11:50:54 -06:00
Ed Page
6da546c9e1 chore: Bump versions 2024-11-29 10:43:19 -06:00
renovate[bot]
1ec49b8947
chore(deps): update msrv 2024-11-29 03:54:45 +00:00
Ed Page
8b41a8ecbe feat(test): Provide access to 'RawOutput' from 'Execs::run'
This will allow more custom assertions.
2024-11-18 20:53:50 -06:00
Ed Page
e3065568d0 docs: Focus the summary for API items
This was aided by `clippy::too_long_first_doc_paragraph`
2024-11-15 09:33:23 -06:00
Ed Page
878caf7447 docs: Surround identifiers in backticks
This was mostly done by clippy via `clippy::doc_markdown`.
I then reviewed it to fix words that shouldn't have it or where `--fix`
put the backtick in the wrong location.
2024-11-15 09:33:23 -06:00
Ed Page
af3cfd5abe fix(test): Un-deprecate contains assertions 2024-11-07 15:55:35 -06:00
Ed Page
d20216c302 docs(test): Document Execs assertions based on port effort
A lot of this was pulled from #14039
2024-11-07 15:54:41 -06:00
Ed Page
84ac190045 refactor(test): Turn WildStr panic into compiler error 2024-11-07 15:22:51 -06:00
Ed Page
1b76a90343 refactor(test): Limit the scope of WildStr 2024-11-07 15:19:12 -06:00
Ed Page
2dd062fc9d refactor(test): Move normalize functions after use 2024-11-07 15:18:42 -06:00
Ed Page
a03adcf6e2 fix(test): Make redactions consistent with snapbox
I'm unsure how we should be replacing these use cases, so I'm exploring
keeping them but making them use snapbox under the hood.
Part of the intent of snapbox is that it provides you the building
blocks to make what you need.
2024-11-06 20:03:53 -06:00
Ed Page
bfa097e5d5 fix(test)!: Remove unused with_stdout_unordered,with_stderr_unordered 2024-11-05 10:39:30 -06:00
Ed Page
8a8254eb1f refactor(test): Remove dead 'expect_stdout_contains_n' check
This was missed when removing the assert
2024-10-31 15:59:16 -05:00
Weihang Lo
634450e4b6
fix: track version in fingerprint dep-info files
Encodes the version information into Cargo's fingerprint dep-info files,
so that when the format encoding changes in the future,
Cargo understands a dep-info file was outdated and doesn't bother parsing it.

Since there was no version info encoded in the old format (call it v0),
to be compatible with older cargoes,
this PR works around it with a horrible hack.
It is explained in the doc comment of `EncodedDepInfo`.
2024-10-30 18:43:30 -04:00
Ed Page
646e29abb5 feat(test): Allow setting edition on published packages 2024-10-23 15:14:08 -05:00
Ed Page
255f622299 feat(test): Allow setting resolver on published packages 2024-10-23 14:53:46 -05:00
renovate[bot]
341d619f66
chore(deps): update msrv 2024-10-19 01:35:59 -04:00
Ed Page
5b84fc99c5 feat(test): Snapshot .crate validation 2024-10-17 06:26:47 +08:00
Ed Page
5c25f7a9b8 refactor(test): Simplify handling of tar file prefixes 2024-10-17 06:26:47 +08:00
Ed Page
6d048153b3 refactor(test): Pull out new POST parsing 2024-10-17 06:26:47 +08:00
Ed Page
e52b041a4d chore(test): Bump to 0.6 2024-10-17 06:26:47 +08:00
Jacob Kiesel
cf893c1695
test(freshness_checksum): verify cargo depinfo is properly encoded 2024-10-08 16:30:54 -04:00
Ed Page
c3f19a8ec1 refactor(test): Migrate validate_upload to snapbox for json comparisons 2024-10-03 21:15:10 -05:00
Ed Page
01a47f3c4d fix(test): Remove unused, deprecated with_json 2024-10-03 21:15:10 -05:00
Ed Page
5c87c14f9a docs: Declare support level for each crate in our Charter / docs
This is to bring us into conformance with the [Rust crate ownership
policy](https://forge.rust-lang.org/policies/crate-ownership.html).

Items of note
- `cargo-credential-1password` is declared as Experimental as it is
  intended for the community but I was unsure if we wanted to commit to
  full support for it.  In my mind, the ideal thing to do would be to
  expatriate this to 1password.
- `home` is declared as Internal despite its wide use within the
  ecosystem.
- `cargo-credential` is declared as Intentional as its an API intended
  for the wider ecosystem and I didn't see a reason to declare it
  experimental.
- `cargo-platform`, `cargo-util-schemas`, and `crates-io` are declared
  as Intentional as they are both used internally and intended for
  others to use for logic that integrates with cargo/registries.
  I wondered about these being Experimental or Internal instead.
2024-09-26 12:43:09 -05:00
xzfc
0c74d2449d chore(deps): update tar to 0.4.42
The new version of tar enables the creation of sparse tar archives by
default.  The ability to read such sparse entries was added in tar
0.4.6, which has been in use starting from Cargo 0.13 and Rust 1.12.
Additionally, `docker cp` doesn't support sparse tar entries in the GNU
format.  For compatibility with older versions of Rust and Cargo, as
well as with `docker cp`, this commit disables sparse archive creation
in the corresponding cases where the `tar::Builder` is used.  See
#14594.
2024-10-02 03:27:27 +00:00
Ed Page
7ab9320664 fix(test): Remove with_stdout/with_stderr 2024-09-23 20:44:41 -05:00
Ed Page
61b8903e59 chore(test): Bump for breaking changes 2024-09-23 20:44:40 -05:00
Ed Page
1f5f7021e5 fix(test):; Allow '0 files' to not be redacted 2024-09-23 20:44:14 -05:00
Ed Page
1b94fb2326 chore: Bump MSRV to 1.81
This is prep for using `#[expect]`.

Its not clear why RenovateBot didn't do this.
2024-09-23 19:45:57 -05:00
Kornel
f3c7525a61
Tests rely on absence of RUST_BACKTRACE 2024-08-21 23:12:05 +01:00
renovate[bot]
74f01c4b65
chore(deps): update msrv 2024-07-26 12:52:37 +00:00
Ed Page
922cfe5759 fix(test): Remove unused deprecated function 2024-07-24 16:35:11 -05:00
Ed Page
16448d45d7 doc(test): Document 'with_json' replacement 2024-07-24 10:42:51 -05:00
Weihang Lo
ab8ac44b49
chore: bump cargo-test-support to 0.4.0 2024-07-22 15:37:13 -04:00
Ed Page
83cbca0141 refactor(test): Document 'registry' mod 2024-07-22 08:58:52 -05:00
Ed Page
b931d98b90 refactor(test): Document 'publish' mod 2024-07-22 08:58:52 -05:00
Ed Page
6d0eea0e33 refactor(test): Document 'paths' mod
I considered hiding `init_root` as an implementation detail of
`#[cargo_test]` but decided to be conservative about that for now.
2024-07-22 08:58:52 -05:00
Ed Page
062652c856 docs(test): Expand 'install' documentation 2024-07-22 08:58:52 -05:00
Ed Page
64a62ff8fe docs(test): Expand 'git' documentation 2024-07-22 08:58:52 -05:00
Ed Page
97ccb653b0 docs(test): Expose git documentation 2024-07-22 08:58:52 -05:00
Ed Page
8f88a8af31 docs(test): Expand 'compare' documentation 2024-07-22 08:58:52 -05:00
Ed Page
cb528403fa docs(test): Expand docs for ProjectBuilder 2024-07-22 08:58:52 -05:00
Ed Page
45f61ccfa8 docs(test): Expand docs for Project 2024-07-22 08:58:52 -05:00
Ed Page
3dff0ec945 docs(test): Document project* functions 2024-07-22 08:58:52 -05:00
Ed Page
e53f2aff55 docs(test): Document panic_error function 2024-07-22 08:58:52 -05:00
Ed Page
c9dddd27c8 docs(test): Document main_file function 2024-07-22 08:58:52 -05:00
Ed Page
170756601c docs(test): Document 'process' 2024-07-22 08:58:52 -05:00
Ed Page
b4b56d4d65 docs(test): Document basic_*manifest functions 2024-07-22 08:58:52 -05:00