-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Chore(test): remove unnecesary packages and versions for optionals tests
- Loading branch information
Showing
25 changed files
with
30 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,27 +7,15 @@ use cargo_test_support::curr_dir; | |
#[cargo_test] | ||
fn case() { | ||
cargo_test_support::registry::init(); | ||
for name in ["my-package1", "my-package2"] { | ||
for ver in [ | ||
"0.1.1+my-package", | ||
"0.2.0+my-package", | ||
"0.2.3+my-package", | ||
"0.4.1+my-package", | ||
"20.0.0+my-package", | ||
"99999.0.0+my-package", | ||
"99999.0.0-alpha.1+my-package", | ||
] { | ||
cargo_test_support::registry::Package::new(name, ver).publish(); | ||
} | ||
} | ||
cargo_test_support::registry::Package::new("my-package", "0.1.0").publish(); | ||
|
||
let project = Project::from_template(curr_dir!().join("in")); | ||
let project_root = project.root(); | ||
let cwd = &project_root; | ||
|
||
snapbox::cmd::Command::cargo_ui() | ||
.arg("add") | ||
.arg_line("my-package1 [email protected] --no-optional") | ||
.arg_line("my-package --no-optional") | ||
.current_dir(cwd) | ||
.assert() | ||
.success() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
Updating `dummy-registry` index | ||
Adding my-package1 v99999.0.0 to dependencies. | ||
Adding my-package2 v0.4.1 to dependencies. | ||
Adding my-package v0.1.0 to dependencies. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,27 +7,15 @@ use cargo_test_support::curr_dir; | |
#[cargo_test] | ||
fn case() { | ||
cargo_test_support::registry::init(); | ||
for name in ["my-package1", "my-package2"] { | ||
for ver in [ | ||
"0.1.1+my-package", | ||
"0.2.0+my-package", | ||
"0.2.3+my-package", | ||
"0.4.1+my-package", | ||
"20.0.0+my-package", | ||
"99999.0.0+my-package", | ||
"99999.0.0-alpha.1+my-package", | ||
] { | ||
cargo_test_support::registry::Package::new(name, ver).publish(); | ||
} | ||
} | ||
cargo_test_support::registry::Package::new("my-package", "0.1.0").publish(); | ||
|
||
let project = Project::from_template(curr_dir!().join("in")); | ||
let project_root = project.root(); | ||
let cwd = &project_root; | ||
|
||
snapbox::cmd::Command::cargo_ui() | ||
.arg("add") | ||
.arg_line("my-package1 [email protected] --optional") | ||
.arg_line("my-package --optional") | ||
.current_dir(cwd) | ||
.assert() | ||
.success() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
Updating `dummy-registry` index | ||
Adding my-package1 v99999.0.0 to optional dependencies. | ||
Adding my-package2 v0.4.1 to optional dependencies. | ||
Adding my-package v0.1.0 to optional dependencies. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,27 +7,15 @@ use cargo_test_support::curr_dir; | |
#[cargo_test] | ||
fn case() { | ||
cargo_test_support::registry::init(); | ||
for name in ["my-package1", "my-package2"] { | ||
for ver in [ | ||
"0.1.1+my-package", | ||
"0.2.0+my-package", | ||
"0.2.3+my-package", | ||
"0.4.1+my-package", | ||
"20.0.0+my-package", | ||
"99999.0.0+my-package", | ||
"99999.0.0-alpha.1+my-package", | ||
] { | ||
cargo_test_support::registry::Package::new(name, ver).publish(); | ||
} | ||
} | ||
cargo_test_support::registry::Package::new("my-package", "0.1.0").publish(); | ||
|
||
let project = Project::from_template(curr_dir!().join("in")); | ||
let project_root = project.root(); | ||
let cwd = &project_root; | ||
|
||
snapbox::cmd::Command::cargo_ui() | ||
.arg("add") | ||
.arg_line("my-package1 [email protected] --no-optional") | ||
.arg_line("my-package --no-optional") | ||
.current_dir(cwd) | ||
.assert() | ||
.success() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
Updating `dummy-registry` index | ||
Adding my-package1 v99999.0.0 to dependencies. | ||
Adding my-package2 v0.4.1 to dependencies. | ||
Adding my-package v0.1.0 to dependencies. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,27 +7,15 @@ use cargo_test_support::curr_dir; | |
#[cargo_test] | ||
fn case() { | ||
cargo_test_support::registry::init(); | ||
for name in ["my-package1", "my-package2"] { | ||
for ver in [ | ||
"0.1.1+my-package", | ||
"0.2.0+my-package", | ||
"0.2.3+my-package", | ||
"0.4.1+my-package", | ||
"20.0.0+my-package", | ||
"99999.0.0+my-package", | ||
"99999.0.0-alpha.1+my-package", | ||
] { | ||
cargo_test_support::registry::Package::new(name, ver).publish(); | ||
} | ||
} | ||
cargo_test_support::registry::Package::new("my-package", "0.1.0").publish(); | ||
|
||
let project = Project::from_template(curr_dir!().join("in")); | ||
let project_root = project.root(); | ||
let cwd = &project_root; | ||
|
||
snapbox::cmd::Command::cargo_ui() | ||
.arg("add") | ||
.arg_line("my-package1 [email protected] --optional") | ||
.arg_line("my-package --optional") | ||
.current_dir(cwd) | ||
.assert() | ||
.success() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
tests/testsuite/cargo_add/overwrite_no_optional_with_optional/stderr.log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
Updating `dummy-registry` index | ||
Adding my-package1 v99999.0.0 to optional dependencies. | ||
Adding my-package2 v0.4.1 to optional dependencies. | ||
Adding my-package v0.1.0 to optional dependencies. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,27 +7,15 @@ use cargo_test_support::curr_dir; | |
#[cargo_test] | ||
fn case() { | ||
cargo_test_support::registry::init(); | ||
for name in ["my-package1", "my-package2"] { | ||
for ver in [ | ||
"0.1.1+my-package", | ||
"0.2.0+my-package", | ||
"0.2.3+my-package", | ||
"0.4.1+my-package", | ||
"20.0.0+my-package", | ||
"99999.0.0+my-package", | ||
"99999.0.0-alpha.1+my-package", | ||
] { | ||
cargo_test_support::registry::Package::new(name, ver).publish(); | ||
} | ||
} | ||
cargo_test_support::registry::Package::new("my-package", "0.1.0").publish(); | ||
|
||
let project = Project::from_template(curr_dir!().join("in")); | ||
let project_root = project.root(); | ||
let cwd = &project_root; | ||
|
||
snapbox::cmd::Command::cargo_ui() | ||
.arg("add") | ||
.arg_line("my-package1 [email protected] --optional") | ||
.arg_line("my-package --optional") | ||
.current_dir(cwd) | ||
.assert() | ||
.success() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
Updating `dummy-registry` index | ||
Adding my-package1 v99999.0.0 to optional dependencies. | ||
Adding my-package2 v0.4.1 to optional dependencies. | ||
Adding my-package v0.1.0 to optional dependencies. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,17 +7,7 @@ use cargo_test_support::curr_dir; | |
#[cargo_test] | ||
fn case() { | ||
cargo_test_support::registry::init(); | ||
for ver in [ | ||
"0.1.1+my-package", | ||
"0.2.0+my-package", | ||
"0.2.3+my-package", | ||
"0.4.1+my-package", | ||
"20.0.0+my-package", | ||
"99999.0.0+my-package", | ||
"99999.0.0-alpha.1+my-package", | ||
] { | ||
cargo_test_support::registry::Package::new("my-package2", ver).publish(); | ||
} | ||
|
||
cargo_test_support::registry::Package::new("your-face", "99999.0.0+my-package") | ||
.feature("nose", &[]) | ||
.feature("mouth", &[]) | ||
|
@@ -31,7 +21,7 @@ fn case() { | |
|
||
snapbox::cmd::Command::cargo_ui() | ||
.arg("add") | ||
.arg_line("your-face [email protected] --no-optional") | ||
.arg_line("your-face --no-optional") | ||
.current_dir(cwd) | ||
.assert() | ||
.success() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,3 @@ | |
- eyes | ||
- mouth | ||
- nose | ||
Adding my-package2 v0.4.1 to dependencies. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
tests/testsuite/cargo_add/overwrite_optional_with_optional/stderr.log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
Updating `dummy-registry` index | ||
Adding my-package1 v99999.0.0 to optional dependencies. | ||
Adding my-package2 v0.4.1 to optional dependencies. |