Skip to content

Commit

Permalink
test: Remove empty snapshots for UI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Feb 20, 2024
1 parent 2e878a4 commit ac453f1
Show file tree
Hide file tree
Showing 442 changed files with 441 additions and 222 deletions.
3 changes: 2 additions & 1 deletion tests/testsuite/cargo_add/add_basic/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use cargo_test_support::compare::assert_ui;
use cargo_test_support::current_dir;
use cargo_test_support::file;
use cargo_test_support::prelude::*;
use cargo_test_support::str;
use cargo_test_support::Project;

#[cargo_test]
Expand Down Expand Up @@ -29,7 +30,7 @@ fn case() {
.current_dir(cwd)
.assert()
.success()
.stdout_matches(file!["stdout.log"])
.stdout_matches(str![""])
.stderr_matches(file!["stderr.log"]);

assert_ui().subset_matches(current_dir!().join("out"), &project_root);
Expand Down
Empty file.
3 changes: 2 additions & 1 deletion tests/testsuite/cargo_add/add_multiple/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use cargo_test_support::compare::assert_ui;
use cargo_test_support::current_dir;
use cargo_test_support::file;
use cargo_test_support::prelude::*;
use cargo_test_support::str;
use cargo_test_support::Project;

#[cargo_test]
Expand Down Expand Up @@ -31,7 +32,7 @@ fn case() {
.current_dir(cwd)
.assert()
.success()
.stdout_matches(file!["stdout.log"])
.stdout_matches(str![""])
.stderr_matches(file!["stderr.log"]);

assert_ui().subset_matches(current_dir!().join("out"), &project_root);
Expand Down
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use cargo_test_support::compare::assert_ui;
use cargo_test_support::current_dir;
use cargo_test_support::file;
use cargo_test_support::prelude::*;
use cargo_test_support::str;
use cargo_test_support::Project;

#[cargo_test]
Expand Down Expand Up @@ -34,7 +35,7 @@ fn case() {
.current_dir(cwd)
.assert()
.success()
.stdout_matches(file!["stdout.log"])
.stdout_matches(str![""])
.stderr_matches(file!["stderr.log"]);

assert_ui().subset_matches(current_dir!().join("out"), &project_root);
Expand Down
Empty file.
3 changes: 2 additions & 1 deletion tests/testsuite/cargo_add/add_toolchain/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use cargo_test_support::compare::assert_ui;
use cargo_test_support::current_dir;
use cargo_test_support::file;
use cargo_test_support::prelude::*;
use cargo_test_support::str;
use cargo_test_support::Project;

#[cargo_test]
Expand All @@ -16,7 +17,7 @@ fn case() {
.current_dir(cwd)
.assert()
.failure()
.stdout_matches(file!["stdout.log"])
.stdout_matches(str![""])
.stderr_matches(file!["stderr.log"]);

assert_ui().subset_matches(current_dir!().join("out"), &project_root);
Expand Down
Empty file.
3 changes: 2 additions & 1 deletion tests/testsuite/cargo_add/build/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use cargo_test_support::compare::assert_ui;
use cargo_test_support::current_dir;
use cargo_test_support::file;
use cargo_test_support::prelude::*;
use cargo_test_support::str;
use cargo_test_support::Project;

#[cargo_test]
Expand Down Expand Up @@ -31,7 +32,7 @@ fn case() {
.current_dir(cwd)
.assert()
.success()
.stdout_matches(file!["stdout.log"])
.stdout_matches(str![""])
.stderr_matches(file!["stderr.log"]);

assert_ui().subset_matches(current_dir!().join("out"), &project_root);
Expand Down
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use cargo_test_support::compare::assert_ui;
use cargo_test_support::current_dir;
use cargo_test_support::file;
use cargo_test_support::prelude::*;
use cargo_test_support::str;
use cargo_test_support::Project;

#[cargo_test]
Expand Down Expand Up @@ -31,7 +32,7 @@ fn case() {
.current_dir(cwd)
.assert()
.success()
.stdout_matches(file!["stdout.log"])
.stdout_matches(str![""])
.stderr_matches(file!["stderr.log"]);

assert_ui().subset_matches(current_dir!().join("out"), &project_root);
Expand Down
Empty file.
3 changes: 2 additions & 1 deletion tests/testsuite/cargo_add/change_rename_target/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use cargo_test_support::compare::assert_ui;
use cargo_test_support::current_dir;
use cargo_test_support::file;
use cargo_test_support::prelude::*;
use cargo_test_support::str;
use cargo_test_support::Project;

#[cargo_test]
Expand Down Expand Up @@ -31,7 +32,7 @@ fn case() {
.current_dir(cwd)
.assert()
.success()
.stdout_matches(file!["stdout.log"])
.stdout_matches(str![""])
.stderr_matches(file!["stderr.log"]);

assert_ui().subset_matches(current_dir!().join("out"), &project_root);
Expand Down
Empty file.
3 changes: 2 additions & 1 deletion tests/testsuite/cargo_add/cyclic_features/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use cargo_test_support::compare::assert_ui;
use cargo_test_support::current_dir;
use cargo_test_support::file;
use cargo_test_support::prelude::*;
use cargo_test_support::str;
use cargo_test_support::Project;

#[cargo_test]
Expand All @@ -23,7 +24,7 @@ fn case() {
.current_dir(cwd)
.assert()
.success()
.stdout_matches(file!["stdout.log"])
.stdout_matches(str![""])
.stderr_matches(file!["stderr.log"]);

assert_ui().subset_matches(current_dir!().join("out"), &project_root);
Expand Down
Empty file.
3 changes: 2 additions & 1 deletion tests/testsuite/cargo_add/default_features/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use cargo_test_support::compare::assert_ui;
use cargo_test_support::current_dir;
use cargo_test_support::file;
use cargo_test_support::prelude::*;
use cargo_test_support::str;
use cargo_test_support::Project;

#[cargo_test]
Expand Down Expand Up @@ -31,7 +32,7 @@ fn case() {
.current_dir(cwd)
.assert()
.success()
.stdout_matches(file!["stdout.log"])
.stdout_matches(str![""])
.stderr_matches(file!["stderr.log"]);

assert_ui().subset_matches(current_dir!().join("out"), &project_root);
Expand Down
Empty file.
3 changes: 2 additions & 1 deletion tests/testsuite/cargo_add/deprecated_default_features/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use cargo_test_support::compare::assert_ui;
use cargo_test_support::current_dir;
use cargo_test_support::file;
use cargo_test_support::prelude::*;
use cargo_test_support::str;
use cargo_test_support::Project;

#[cargo_test]
Expand Down Expand Up @@ -29,7 +30,7 @@ fn case() {
.current_dir(&cwd)
.assert()
.failure()
.stdout_matches(file!["stdout.log"])
.stdout_matches(str![""])
.stderr_matches(file!["stderr.log"]);

assert_ui().subset_matches(current_dir!().join("out"), &project_root);
Expand Down
Empty file.
3 changes: 2 additions & 1 deletion tests/testsuite/cargo_add/deprecated_section/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use cargo_test_support::compare::assert_ui;
use cargo_test_support::current_dir;
use cargo_test_support::file;
use cargo_test_support::prelude::*;
use cargo_test_support::str;
use cargo_test_support::Project;

#[cargo_test]
Expand Down Expand Up @@ -29,7 +30,7 @@ fn case() {
.current_dir(&cwd)
.assert()
.failure()
.stdout_matches(file!["stdout.log"])
.stdout_matches(str![""])
.stderr_matches(file!["stderr.log"]);

assert_ui().subset_matches(current_dir!().join("out"), &project_root);
Expand Down
Empty file.
3 changes: 2 additions & 1 deletion tests/testsuite/cargo_add/detect_workspace_inherit/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use cargo_test_support::compare::assert_ui;
use cargo_test_support::current_dir;
use cargo_test_support::file;
use cargo_test_support::prelude::*;
use cargo_test_support::str;
use cargo_test_support::Project;

#[cargo_test]
Expand All @@ -18,7 +19,7 @@ fn case() {
.current_dir(cwd)
.assert()
.success()
.stdout_matches(file!["stdout.log"])
.stdout_matches(str![""])
.stderr_matches(file!["stderr.log"]);

assert_ui().subset_matches(current_dir!().join("out"), &project_root);
Expand Down
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use cargo_test_support::compare::assert_ui;
use cargo_test_support::current_dir;
use cargo_test_support::file;
use cargo_test_support::prelude::*;
use cargo_test_support::str;
use cargo_test_support::Project;

#[cargo_test]
Expand All @@ -18,7 +19,7 @@ fn case() {
.current_dir(cwd)
.assert()
.success()
.stdout_matches(file!["stdout.log"])
.stdout_matches(str![""])
.stderr_matches(file!["stderr.log"]);

assert_ui().subset_matches(current_dir!().join("out"), &project_root);
Expand Down
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use cargo_test_support::compare::assert_ui;
use cargo_test_support::current_dir;
use cargo_test_support::file;
use cargo_test_support::prelude::*;
use cargo_test_support::str;
use cargo_test_support::Project;

#[cargo_test]
Expand All @@ -18,7 +19,7 @@ fn case() {
.current_dir(cwd)
.assert()
.success()
.stdout_matches(file!["stdout.log"])
.stdout_matches(str![""])
.stderr_matches(file!["stderr.log"]);

assert_ui().subset_matches(current_dir!().join("out"), &project_root);
Expand Down
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use cargo_test_support::compare::assert_ui;
use cargo_test_support::current_dir;
use cargo_test_support::file;
use cargo_test_support::prelude::*;
use cargo_test_support::str;
use cargo_test_support::Project;

#[cargo_test]
Expand All @@ -19,7 +20,7 @@ fn case() {
.current_dir(cwd)
.assert()
.success()
.stdout_matches(file!["stdout.log"])
.stdout_matches(str![""])
.stderr_matches(file!["stderr.log"]);

assert_ui().subset_matches(current_dir!().join("out"), &project_root);
Expand Down
Empty file.
3 changes: 2 additions & 1 deletion tests/testsuite/cargo_add/dev/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use cargo_test_support::compare::assert_ui;
use cargo_test_support::current_dir;
use cargo_test_support::file;
use cargo_test_support::prelude::*;
use cargo_test_support::str;
use cargo_test_support::Project;

#[cargo_test]
Expand Down Expand Up @@ -31,7 +32,7 @@ fn case() {
.current_dir(cwd)
.assert()
.success()
.stdout_matches(file!["stdout.log"])
.stdout_matches(str![""])
.stderr_matches(file!["stderr.log"]);

assert_ui().subset_matches(current_dir!().join("out"), &project_root);
Expand Down
Empty file.
3 changes: 2 additions & 1 deletion tests/testsuite/cargo_add/dev_build_conflict/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use cargo_test_support::compare::assert_ui;
use cargo_test_support::current_dir;
use cargo_test_support::file;
use cargo_test_support::prelude::*;
use cargo_test_support::str;
use cargo_test_support::Project;

#[cargo_test]
Expand Down Expand Up @@ -29,7 +30,7 @@ fn case() {
.current_dir(cwd)
.assert()
.code(1)
.stdout_matches(file!["stdout.log"])
.stdout_matches(str![""])
.stderr_matches(file!["stderr.log"]);

assert_ui().subset_matches(current_dir!().join("out"), &project_root);
Expand Down
Empty file.
3 changes: 2 additions & 1 deletion tests/testsuite/cargo_add/dev_prefer_existing_version/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use cargo_test_support::compare::assert_ui;
use cargo_test_support::current_dir;
use cargo_test_support::file;
use cargo_test_support::prelude::*;
use cargo_test_support::str;
use cargo_test_support::Project;

#[cargo_test]
Expand Down Expand Up @@ -31,7 +32,7 @@ fn case() {
.current_dir(cwd)
.assert()
.success()
.stdout_matches(file!["stdout.log"])
.stdout_matches(str![""])
.stderr_matches(file!["stderr.log"]);

assert_ui().subset_matches(current_dir!().join("out"), &project_root);
Expand Down
Empty file.
3 changes: 2 additions & 1 deletion tests/testsuite/cargo_add/dry_run/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use cargo_test_support::compare::assert_ui;
use cargo_test_support::current_dir;
use cargo_test_support::file;
use cargo_test_support::prelude::*;
use cargo_test_support::str;
use cargo_test_support::Project;

#[cargo_test]
Expand Down Expand Up @@ -29,7 +30,7 @@ fn case() {
.current_dir(cwd)
.assert()
.success()
.stdout_matches(file!["stdout.log"])
.stdout_matches(str![""])
.stderr_matches(file!["stderr.log"]);

assert_ui().subset_matches(current_dir!().join("out"), &project_root);
Expand Down
Empty file.
3 changes: 2 additions & 1 deletion tests/testsuite/cargo_add/empty_dep_name/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use cargo_test_support::compare::assert_ui;
use cargo_test_support::current_dir;
use cargo_test_support::file;
use cargo_test_support::prelude::*;
use cargo_test_support::str;
use cargo_test_support::Project;

#[cargo_test]
Expand All @@ -17,7 +18,7 @@ fn case() {
.current_dir(cwd)
.assert()
.failure()
.stdout_matches(file!["stdout.log"])
.stdout_matches(str![""])
.stderr_matches(file!["stderr.log"]);

assert_ui().subset_matches(current_dir!().join("out"), &project_root);
Expand Down
Empty file.
3 changes: 2 additions & 1 deletion tests/testsuite/cargo_add/empty_dep_table/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use cargo_test_support::compare::assert_ui;
use cargo_test_support::current_dir;
use cargo_test_support::file;
use cargo_test_support::prelude::*;
use cargo_test_support::str;
use cargo_test_support::Project;

#[cargo_test]
Expand All @@ -24,7 +25,7 @@ fn case() {
.current_dir(cwd)
.assert()
.code(101)
.stdout_matches(file!["stdout.log"])
.stdout_matches(str![""])
.stderr_matches(file!["stderr.log"]);

assert_ui().subset_matches(current_dir!().join("out"), &project_root);
Expand Down
Empty file.
3 changes: 2 additions & 1 deletion tests/testsuite/cargo_add/features/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use cargo_test_support::compare::assert_ui;
use cargo_test_support::current_dir;
use cargo_test_support::file;
use cargo_test_support::prelude::*;
use cargo_test_support::str;
use cargo_test_support::Project;

#[cargo_test]
Expand All @@ -24,7 +25,7 @@ fn case() {
.current_dir(cwd)
.assert()
.success()
.stdout_matches(file!["stdout.log"])
.stdout_matches(str![""])
.stderr_matches(file!["stderr.log"]);

assert_ui().subset_matches(current_dir!().join("out"), &project_root);
Expand Down
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use cargo_test_support::compare::assert_ui;
use cargo_test_support::current_dir;
use cargo_test_support::file;
use cargo_test_support::prelude::*;
use cargo_test_support::str;
use cargo_test_support::Project;
use itertools::Itertools;

Expand Down Expand Up @@ -31,7 +32,7 @@ fn case() {
.current_dir(cwd)
.assert()
.success()
.stdout_matches(file!["stdout.log"])
.stdout_matches(str![""])
.stderr_matches(file!["stderr.log"]);

assert_ui().subset_matches(current_dir!().join("out"), &project_root);
Expand Down
Empty file.
Loading

0 comments on commit ac453f1

Please sign in to comment.