@@ -92,11 +92,14 @@ static async Task Main()
92
92
var folderName = Regex . Match ( Path . GetFileName ( testFolder ) , @"^(.*?)\.Tests" ) . Groups [ 1 ] . Value ;
93
93
var outputXmlPath = Path . Combine ( testFolder , "bin" , "output.xml" ) ;
94
94
File . Delete ( outputXmlPath ) ;
95
- await RunXunitAsync ( testFolder , outputXmlPath ) . ConfigureAwait ( false ) ;
95
+ do
96
+ {
97
+ await RunXunitAsync ( testFolder , outputXmlPath ) . ConfigureAwait ( false ) ;
98
+ Console . Write ( "." ) ;
99
+ } while ( ! File . Exists ( outputXmlPath ) ) ;
96
100
var outputXml = XDocument . Load ( outputXmlPath ) ;
97
101
var testResults = CreateTestResults ( outputXml ) ;
98
102
var connectorName = GetConnectorName ( testFolder ) ;
99
- Console . Write ( "." ) ;
100
103
return ( ( connectorName ?? folderName , testResults ) ) ;
101
104
}
102
105
@@ -151,6 +154,8 @@ private static IReadOnlyDictionary<string, TestResult> CreateTestResults(XDocume
151
154
var actual = Regex . Match ( message , @"\\nActual:\s+(.*?)$" ) . Groups [ 1 ] . Value ;
152
155
testStatus = actual == "(No exception was thrown)" ? TestStatus . NoException :
153
156
actual . StartsWith ( "typeof(System.NullReferenceException)" , StringComparison . Ordinal ) ? TestStatus . Exception :
157
+ actual . StartsWith ( "typeof(System.NotSupportedException)" , StringComparison . Ordinal ) ? TestStatus . Exception :
158
+ actual . StartsWith ( "typeof(System.NotImplementedException)" , StringComparison . Ordinal ) ? TestStatus . Exception :
154
159
TestStatus . WrongException ;
155
160
if ( testStatus != TestStatus . NoException )
156
161
testMessage = Regex . Replace ( actual , @"^typeof\((.*?)\)(.*)$" , "$1$2" ) ;
0 commit comments