File tree Expand file tree Collapse file tree 5 files changed +59
-0
lines changed
tests/testsuite/cargo_add Expand file tree Collapse file tree 5 files changed +59
-0
lines changed Original file line number Diff line number Diff line change 1+ ../add-basic.in/
Original file line number Diff line number Diff line change 1+ use cargo_test_support:: compare:: assert_ui;
2+ use cargo_test_support:: current_dir;
3+ use cargo_test_support:: file;
4+ use cargo_test_support:: prelude:: * ;
5+ use cargo_test_support:: str;
6+ use cargo_test_support:: Project ;
7+
8+ #[ cargo_test]
9+ fn case ( ) {
10+ let project = Project :: from_template ( current_dir ! ( ) . join ( "in" ) ) ;
11+ let project_root = project. root ( ) ;
12+ let cwd = & project_root;
13+
14+ snapbox:: cmd:: Command :: cargo_ui ( )
15+ . arg ( "add" )
16+ . arg_line ( "my-package=1.0.0" )
17+ . current_dir ( cwd)
18+ . assert ( )
19+ . code ( 101 )
20+ . stdout_eq ( str![ "" ] )
21+ . stderr_eq ( file ! [ "stderr.term.svg" ] ) ;
22+
23+ assert_ui ( ) . subset_matches ( current_dir ! ( ) . join ( "out" ) , & project_root) ;
24+ }
Original file line number Diff line number Diff line change 1+ [workspace ]
2+
3+ [package ]
4+ name = " cargo-list-test-fixture"
5+ version = " 0.0.0"
6+ edition = " 2015"
Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ mod locked_unchanged;
6565mod lockfile_updated;
6666mod manifest_path_package;
6767mod merge_activated_features;
68+ mod missing_at_in_crate_spec;
6869mod multiple_conflicts_with_features;
6970mod multiple_conflicts_with_rename;
7071mod namever;
You can’t perform that action at this time.
0 commit comments