Skip to content

Commit

Permalink
chore: Upgrade cargo-test-support
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Sep 16, 2024
1 parent ce36ff5 commit 0d0cdb4
Show file tree
Hide file tree
Showing 263 changed files with 3,735 additions and 923 deletions.
504 changes: 300 additions & 204 deletions Cargo.lock

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ predicates = { version = "3.0.3", features = ["color"] }
assert_cmd = { version = "2.0.12", features = ["color-auto"] }
assert_fs = { version = "1.0.13", features = ["color-auto"] }
trycmd = "0.14.17"
snapbox = { version = "0.4.12", features = ["cmd", "path"] }
cargo-test-macro.git = "https://github.com/rust-lang/cargo"
cargo-test-support.git = "https://github.com/rust-lang/cargo"
snapbox = { version = "0.6.9", features = ["cmd", "path"] }
cargo-test-macro = "0.3"
cargo-test-support = "0.3"
url = "2.4.0"

[features]
Expand Down
11 changes: 6 additions & 5 deletions tests/cargo-set-version/downgrade_error/mod.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
use cargo_test_support::compare::assert_ui;
use cargo_test_support::file;
use cargo_test_support::Project;

use crate::init_registry;
use crate::CargoCommand;
use cargo_test_support::curr_dir;
use cargo_test_support::current_dir;

#[cargo_test]
fn case() {
init_registry();
let project = Project::from_template(curr_dir!().join("in"));
let project = Project::from_template(current_dir!().join("in"));
let project_root = project.root();
let cwd = &project_root;

Expand All @@ -18,8 +19,8 @@ fn case() {
.current_dir(cwd)
.assert()
.code(1)
.stdout_matches_path(curr_dir!().join("stdout.log"))
.stderr_matches_path(curr_dir!().join("stderr.log"));
.stdout_eq(file!["stdout.term.svg"])
.stderr_eq(file!["stderr.term.svg"]);

assert_ui().subset_matches(curr_dir!().join("out"), &project_root);
assert_ui().subset_matches(current_dir!().join("out"), &project_root);
}
1 change: 0 additions & 1 deletion tests/cargo-set-version/downgrade_error/stderr.log

This file was deleted.

25 changes: 25 additions & 0 deletions tests/cargo-set-version/downgrade_error/stderr.term.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
21 changes: 21 additions & 0 deletions tests/cargo-set-version/downgrade_error/stdout.term.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 6 additions & 5 deletions tests/cargo-set-version/dry_run/mod.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
use cargo_test_support::compare::assert_ui;
use cargo_test_support::file;
use cargo_test_support::Project;

use crate::init_registry;
use crate::CargoCommand;
use cargo_test_support::curr_dir;
use cargo_test_support::current_dir;

#[cargo_test]
fn case() {
init_registry();
let project = Project::from_template(curr_dir!().join("in"));
let project = Project::from_template(current_dir!().join("in"));
let project_root = project.root();
let cwd = &project_root;

Expand All @@ -18,8 +19,8 @@ fn case() {
.current_dir(cwd)
.assert()
.success()
.stdout_matches_path(curr_dir!().join("stdout.log"))
.stderr_matches_path(curr_dir!().join("stderr.log"));
.stdout_eq(file!["stdout.term.svg"])
.stderr_eq(file!["stderr.term.svg"]);

assert_ui().subset_matches(curr_dir!().join("out"), &project_root);
assert_ui().subset_matches(current_dir!().join("out"), &project_root);
}
2 changes: 0 additions & 2 deletions tests/cargo-set-version/dry_run/stderr.log

This file was deleted.

27 changes: 27 additions & 0 deletions tests/cargo-set-version/dry_run/stderr.term.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
21 changes: 21 additions & 0 deletions tests/cargo-set-version/dry_run/stdout.term.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 6 additions & 5 deletions tests/cargo-set-version/ignore_dependent/mod.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
use cargo_test_support::compare::assert_ui;
use cargo_test_support::file;
use cargo_test_support::Project;

use crate::init_registry;
use crate::CargoCommand;
use cargo_test_support::curr_dir;
use cargo_test_support::current_dir;

#[cargo_test]
fn case() {
init_registry();
let project = Project::from_template(curr_dir!().join("in"));
let project = Project::from_template(current_dir!().join("in"));
let project_root = project.root();
let cwd = &project_root;

Expand All @@ -18,8 +19,8 @@ fn case() {
.current_dir(cwd)
.assert()
.success()
.stdout_matches_path(curr_dir!().join("stdout.log"))
.stderr_matches_path(curr_dir!().join("stderr.log"));
.stdout_eq(file!["stdout.term.svg"])
.stderr_eq(file!["stderr.term.svg"]);

assert_ui().subset_matches(curr_dir!().join("out"), &project_root);
assert_ui().subset_matches(current_dir!().join("out"), &project_root);
}
1 change: 0 additions & 1 deletion tests/cargo-set-version/ignore_dependent/stderr.log

This file was deleted.

25 changes: 25 additions & 0 deletions tests/cargo-set-version/ignore_dependent/stderr.term.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
21 changes: 21 additions & 0 deletions tests/cargo-set-version/ignore_dependent/stdout.term.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 6 additions & 5 deletions tests/cargo-set-version/relative_absolute_conflict/mod.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
use cargo_test_support::compare::assert_ui;
use cargo_test_support::file;
use cargo_test_support::Project;

use crate::init_registry;
use crate::CargoCommand;
use cargo_test_support::curr_dir;
use cargo_test_support::current_dir;

#[cargo_test]
fn case() {
init_registry();
let project = Project::from_template(curr_dir!().join("in"));
let project = Project::from_template(current_dir!().join("in"));
let project_root = project.root();
let cwd = &project_root;

Expand All @@ -18,8 +19,8 @@ fn case() {
.current_dir(cwd)
.assert()
.code(2)
.stdout_matches_path(curr_dir!().join("stdout.log"))
.stderr_matches_path(curr_dir!().join("stderr.log"));
.stdout_eq(file!["stdout.term.svg"])
.stderr_eq(file!["stderr.term.svg"]);

assert_ui().subset_matches(curr_dir!().join("out"), &project_root);
assert_ui().subset_matches(current_dir!().join("out"), &project_root);
}
5 changes: 0 additions & 5 deletions tests/cargo-set-version/relative_absolute_conflict/stderr.log

This file was deleted.

33 changes: 33 additions & 0 deletions tests/cargo-set-version/relative_absolute_conflict/stderr.term.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
21 changes: 21 additions & 0 deletions tests/cargo-set-version/relative_absolute_conflict/stdout.term.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 6 additions & 5 deletions tests/cargo-set-version/set_absolute_version/mod.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
use cargo_test_support::compare::assert_ui;
use cargo_test_support::file;
use cargo_test_support::Project;

use crate::init_registry;
use crate::CargoCommand;
use cargo_test_support::curr_dir;
use cargo_test_support::current_dir;

#[cargo_test]
fn case() {
init_registry();
let project = Project::from_template(curr_dir!().join("in"));
let project = Project::from_template(current_dir!().join("in"));
let project_root = project.root();
let cwd = &project_root;

Expand All @@ -18,8 +19,8 @@ fn case() {
.current_dir(cwd)
.assert()
.success()
.stdout_matches_path(curr_dir!().join("stdout.log"))
.stderr_matches_path(curr_dir!().join("stderr.log"));
.stdout_eq(file!["stdout.term.svg"])
.stderr_eq(file!["stderr.term.svg"]);

assert_ui().subset_matches(curr_dir!().join("out"), &project_root);
assert_ui().subset_matches(current_dir!().join("out"), &project_root);
}
1 change: 0 additions & 1 deletion tests/cargo-set-version/set_absolute_version/stderr.log

This file was deleted.

Loading

0 comments on commit 0d0cdb4

Please sign in to comment.