Skip to content

Commit 94f67d0

Browse files
committed
test(update): Compare verbose with and without updates
1 parent a1db0b1 commit 94f67d0

File tree

1 file changed

+32
-1
lines changed

1 file changed

+32
-1
lines changed

tests/testsuite/update.rs

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1496,11 +1496,42 @@ fn report_behind() {
14961496
p.cargo("generate-lockfile").run();
14971497
Package::new("breaking", "0.1.1").publish();
14981498

1499-
p.cargo("update")
1499+
p.cargo("update --dry-run")
15001500
.with_stderr(
15011501
"\
15021502
[UPDATING] `dummy-registry` index
15031503
[UPDATING] breaking v0.1.0 -> v0.1.1 (latest: v0.2.0)
1504+
[WARNING] not updating lockfile due to dry run
1505+
",
1506+
)
1507+
.run();
1508+
1509+
p.cargo("update --dry-run --verbose")
1510+
.with_stderr(
1511+
"\
1512+
[UPDATING] `dummy-registry` index
1513+
[UPDATING] breaking v0.1.0 -> v0.1.1 (latest: v0.2.0)
1514+
[WARNING] not updating lockfile due to dry run
1515+
",
1516+
)
1517+
.run();
1518+
1519+
p.cargo("update").run();
1520+
1521+
p.cargo("update --dry-run")
1522+
.with_stderr(
1523+
"\
1524+
[UPDATING] `dummy-registry` index
1525+
[WARNING] not updating lockfile due to dry run
1526+
",
1527+
)
1528+
.run();
1529+
1530+
p.cargo("update --dry-run --verbose")
1531+
.with_stderr(
1532+
"\
1533+
[UPDATING] `dummy-registry` index
1534+
[WARNING] not updating lockfile due to dry run
15041535
",
15051536
)
15061537
.run();

0 commit comments

Comments
 (0)