@@ -5,7 +5,7 @@ use cargo::util::ToUrl;
5
5
use std:: fs:: { self , File } ;
6
6
use std:: io:: Write ;
7
7
8
- #[ test ]
8
+ #[ cargo_test ]
9
9
fn depend_on_alt_registry ( ) {
10
10
let p = project ( )
11
11
. file (
@@ -54,7 +54,7 @@ fn depend_on_alt_registry() {
54
54
. run ( ) ;
55
55
}
56
56
57
- #[ test ]
57
+ #[ cargo_test ]
58
58
fn depend_on_alt_registry_depends_on_same_registry_no_index ( ) {
59
59
let p = project ( )
60
60
. file (
@@ -96,7 +96,7 @@ fn depend_on_alt_registry_depends_on_same_registry_no_index() {
96
96
. run ( ) ;
97
97
}
98
98
99
- #[ test ]
99
+ #[ cargo_test ]
100
100
fn depend_on_alt_registry_depends_on_same_registry ( ) {
101
101
let p = project ( )
102
102
. file (
@@ -138,7 +138,7 @@ fn depend_on_alt_registry_depends_on_same_registry() {
138
138
. run ( ) ;
139
139
}
140
140
141
- #[ test ]
141
+ #[ cargo_test ]
142
142
fn depend_on_alt_registry_depends_on_crates_io ( ) {
143
143
let p = project ( )
144
144
. file (
@@ -182,7 +182,7 @@ fn depend_on_alt_registry_depends_on_crates_io() {
182
182
. run ( ) ;
183
183
}
184
184
185
- #[ test ]
185
+ #[ cargo_test ]
186
186
fn registry_and_path_dep_works ( ) {
187
187
registry:: init ( ) ;
188
188
@@ -216,7 +216,7 @@ fn registry_and_path_dep_works() {
216
216
. run ( ) ;
217
217
}
218
218
219
- #[ test ]
219
+ #[ cargo_test ]
220
220
fn registry_incompatible_with_git ( ) {
221
221
registry:: init ( ) ;
222
222
@@ -246,7 +246,7 @@ fn registry_incompatible_with_git() {
246
246
. run ( ) ;
247
247
}
248
248
249
- #[ test ]
249
+ #[ cargo_test ]
250
250
fn cannot_publish_to_crates_io_with_registry_dependency ( ) {
251
251
let fakeio_path = paths:: root ( ) . join ( "fake.io" ) ;
252
252
let fakeio_url = fakeio_path. to_url ( ) . unwrap ( ) ;
@@ -304,7 +304,7 @@ fn cannot_publish_to_crates_io_with_registry_dependency() {
304
304
. run ( ) ;
305
305
}
306
306
307
- #[ test ]
307
+ #[ cargo_test ]
308
308
fn publish_with_registry_dependency ( ) {
309
309
let p = project ( )
310
310
. file (
@@ -365,7 +365,7 @@ fn publish_with_registry_dependency() {
365
365
) ;
366
366
}
367
367
368
- #[ test ]
368
+ #[ cargo_test ]
369
369
fn alt_registry_and_crates_io_deps ( ) {
370
370
let p = project ( )
371
371
. file (
@@ -410,7 +410,7 @@ fn alt_registry_and_crates_io_deps() {
410
410
. run ( ) ;
411
411
}
412
412
413
- #[ test ]
413
+ #[ cargo_test ]
414
414
fn block_publish_due_to_no_token ( ) {
415
415
let p = project ( ) . file ( "src/main.rs" , "fn main() {}" ) . build ( ) ;
416
416
@@ -426,7 +426,7 @@ fn block_publish_due_to_no_token() {
426
426
. run ( ) ;
427
427
}
428
428
429
- #[ test ]
429
+ #[ cargo_test ]
430
430
fn publish_to_alt_registry ( ) {
431
431
let p = project ( ) . file ( "src/main.rs" , "fn main() {}" ) . build ( ) ;
432
432
@@ -464,7 +464,7 @@ fn publish_to_alt_registry() {
464
464
) ;
465
465
}
466
466
467
- #[ test ]
467
+ #[ cargo_test ]
468
468
fn publish_with_crates_io_dep ( ) {
469
469
let p = project ( )
470
470
. file (
@@ -527,7 +527,7 @@ fn publish_with_crates_io_dep() {
527
527
) ;
528
528
}
529
529
530
- #[ test ]
530
+ #[ cargo_test ]
531
531
fn passwords_in_registry_index_url_forbidden ( ) {
532
532
registry:: init ( ) ;
533
533
@@ -551,7 +551,7 @@ fn passwords_in_registry_index_url_forbidden() {
551
551
. run ( ) ;
552
552
}
553
553
554
- #[ test ]
554
+ #[ cargo_test ]
555
555
fn passwords_in_registries_index_url_forbidden ( ) {
556
556
registry:: init ( ) ;
557
557
@@ -575,7 +575,7 @@ fn passwords_in_registries_index_url_forbidden() {
575
575
. run ( ) ;
576
576
}
577
577
578
- #[ test ]
578
+ #[ cargo_test ]
579
579
fn patch_alt_reg ( ) {
580
580
Package :: new ( "bar" , "0.1.0" ) . publish ( ) ;
581
581
let p = project ( )
@@ -616,7 +616,7 @@ fn patch_alt_reg() {
616
616
. run ( ) ;
617
617
}
618
618
619
- #[ test ]
619
+ #[ cargo_test ]
620
620
fn bad_registry_name ( ) {
621
621
let p = project ( )
622
622
. file (
@@ -664,7 +664,7 @@ Caused by:
664
664
}
665
665
}
666
666
667
- #[ test ]
667
+ #[ cargo_test ]
668
668
fn no_api ( ) {
669
669
Package :: new ( "bar" , "0.0.1" ) . alternative ( true ) . publish ( ) ;
670
670
// Configure without `api`.
@@ -746,7 +746,7 @@ fn no_api() {
746
746
. run ( ) ;
747
747
}
748
748
749
- #[ test ]
749
+ #[ cargo_test ]
750
750
fn alt_reg_metadata ( ) {
751
751
// Check for "registry" entries in `cargo metadata` with alternative registries.
752
752
let p = project ( )
@@ -1019,7 +1019,7 @@ fn alt_reg_metadata() {
1019
1019
. run ( ) ;
1020
1020
}
1021
1021
1022
- #[ test ]
1022
+ #[ cargo_test ]
1023
1023
fn unknown_registry ( ) {
1024
1024
// A known registry refers to an unknown registry.
1025
1025
// foo -> bar(crates.io) -> baz(alt)
@@ -1166,7 +1166,7 @@ fn unknown_registry() {
1166
1166
. run ( ) ;
1167
1167
}
1168
1168
1169
- #[ test ]
1169
+ #[ cargo_test ]
1170
1170
fn registries_index_relative_url ( ) {
1171
1171
let config = paths:: root ( ) . join ( ".cargo/config" ) ;
1172
1172
fs:: create_dir_all ( config. parent ( ) . unwrap ( ) ) . unwrap ( ) ;
@@ -1216,7 +1216,7 @@ fn registries_index_relative_url() {
1216
1216
. run ( ) ;
1217
1217
}
1218
1218
1219
- #[ test ]
1219
+ #[ cargo_test ]
1220
1220
fn registry_index_relative_url ( ) {
1221
1221
let config = paths:: root ( ) . join ( ".cargo/config" ) ;
1222
1222
fs:: create_dir_all ( config. parent ( ) . unwrap ( ) ) . unwrap ( ) ;
@@ -1268,7 +1268,7 @@ warning: custom registry support via the `registry.index` configuration is being
1268
1268
. run ( ) ;
1269
1269
}
1270
1270
1271
- #[ test ]
1271
+ #[ cargo_test ]
1272
1272
fn registries_index_relative_path_not_allowed ( ) {
1273
1273
let config = paths:: root ( ) . join ( ".cargo/config" ) ;
1274
1274
fs:: create_dir_all ( config. parent ( ) . unwrap ( ) ) . unwrap ( ) ;
0 commit comments