@@ -3080,10 +3080,11 @@ fn json_artifact_includes_executable_for_integration_tests() {
3080
3080
. file ( "tests/integration_test.rs" , r#"#[test] fn integration_test() {}"# )
3081
3081
. build ( ) ;
3082
3082
3083
- p. cargo ( "test -v --no-run --message-format=json --test integration_test" )
3083
+ // Using jobs=1 to ensure that the order of messages is consistent.
3084
+ p. cargo ( "test -v --no-run --message-format=json --jobs=1 --test integration_test" )
3084
3085
. with_json ( r#"
3085
3086
{
3086
- "executable": "[..]/foo/target/debug/foo [EXE]",
3087
+ "executable": "[..]/foo/target/debug/integration_test-[..] [EXE]",
3087
3088
"features": [],
3088
3089
"filenames": "{...}",
3089
3090
"fresh": false,
@@ -3092,15 +3093,15 @@ fn json_artifact_includes_executable_for_integration_tests() {
3092
3093
"reason": "compiler-artifact",
3093
3094
"target": {
3094
3095
"crate_types": [ "bin" ],
3095
- "kind": [ "bin " ],
3096
+ "kind": [ "test " ],
3096
3097
"edition": "2015",
3097
- "name": "foo ",
3098
- "src_path": "[..]/foo/src/main .rs"
3098
+ "name": "integration_test ",
3099
+ "src_path": "[..]/foo/tests/integration_test .rs"
3099
3100
}
3100
3101
}
3101
3102
3102
3103
{
3103
- "executable": "[..]/foo/target/debug/integration_test-[..] [EXE]",
3104
+ "executable": "[..]/foo/target/debug/foo [EXE]",
3104
3105
"features": [],
3105
3106
"filenames": "{...}",
3106
3107
"fresh": false,
@@ -3109,10 +3110,10 @@ fn json_artifact_includes_executable_for_integration_tests() {
3109
3110
"reason": "compiler-artifact",
3110
3111
"target": {
3111
3112
"crate_types": [ "bin" ],
3112
- "kind": [ "test " ],
3113
+ "kind": [ "bin " ],
3113
3114
"edition": "2015",
3114
- "name": "integration_test ",
3115
- "src_path": "[..]/foo/tests/integration_test .rs"
3115
+ "name": "foo ",
3116
+ "src_path": "[..]/foo/src/main .rs"
3116
3117
}
3117
3118
}
3118
3119
"# )
0 commit comments