finalXCResultIssueDiscarderdartBuildErrorDiscarder=XCResultIssueDiscarder(messageMatcher:RegExp(r'Command PhaseScriptExecution failed with a nonzero exit code'));
expect(testLogger.errorText,isNot(contains('Command PhaseScriptExecution failed with a nonzero exit code')));
expect(testLogger.warningText,isNot(contains("The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99.")));
expect(testLogger.errorText,isNot(contains('Command PhaseScriptExecution failed with a nonzero exit code')));
expect(testLogger.warningText,isNot(contains("The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99.")));
expect(testLogger.errorText,isNot(contains('Command PhaseScriptExecution failed with a nonzero exit code')));
expect(testLogger.warningText,isNot(contains("The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99.")));
/// An example xcresult bundle json that contains some warning and some errors.
constStringkSampleResultJsonWithIssues=r'''
{
},
"issueType" : {
"_type" : {
"_name" : "ActionsInvocationRecord"
"_name" : "String"
},
"_value" : "Semantic Issue"
},
"actions" : {
"message" : {
"_type" : {
"_name" : "Array"
"_name" : "String"
},
"_value" : "Use of undeclared identifier 'asdas'"
}
},
"_values" : [
{
"_type" : {
"_name" : "ActionRecord"
"_name" : "IssueSummary"
},
"actionResult" : {
"issueType" : {
"_type" : {
"_name" : "ActionResult"
"_name" : "String"
},
"coverage" : {
"_value" : "Uncategorized"
},
"message" : {
"_type" : {
"_name" : "CodeCoverageInfo"
"_name" : "String"
},
"_value" : "Command PhaseScriptExecution failed with a nonzero exit code"
}
}
]
},
"issues" : {
"warningSummaries" : {
"_type" : {
"_name" : "ResultIssueSummaries"
}
"_name" : "Array"
},
"metrics" : {
"_values" : [
{
"_type" : {
"_name" : "ResultMetrics"
}
"_name" : "IssueSummary"
},
"resultName" : {
"issueType" : {
"_type" : {
"_name" : "String"
},
"_value" : "action"
"_value" : "Warning"
},
"status" : {
"message" : {
"_type" : {
"_name" : "String"
},
"_value" : "notRequested"
"_value" : "The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99."
}
},
"buildResult" : {
"_type" : {
"_name" : "ActionResult"
},
"coverage" : {
"_type" : {
"_name" : "CodeCoverageInfo"
}
},
]
}
}
}
''';
/// An example xcresult bundle json that contains some warning and some errors.
"_value" : "The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99."
}
},
"ramSizeInMegabytes" : {
"_type" : {
"_name" : "Int"
},
"_value" : "65536"
}
},
"targetArchitecture" : {
"_type" : {
"_name" : "String"
},
"_value" : "arm64e"
},
"targetDeviceRecord" : {
"_type" : {
"_name" : "ActionDeviceRecord"
},
"identifier" : {
]
}
}
}
''';
/// An example xcresult bundle json that contains no issues.
"_value" : "The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99."
"_value" : "The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99."
"_value" : "The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99."