@@ -23,114 +23,163 @@ public static string FindRepo(string testName, IReporter reporter)
23
23
}
24
24
else
25
25
{
26
- if ( testName . StartsWith ( Constants . VSTestPrefix , StringComparison . OrdinalIgnoreCase ) )
27
- {
28
- var name = testName . Replace ( Constants . VSTestPrefix , string . Empty ) ;
26
+ var name = testName . Replace ( Constants . VSTestPrefix , string . Empty ) ;
29
27
30
- if ( name . StartsWith ( "Microsoft.AspNetCore.Server" , StringComparison . OrdinalIgnoreCase ) )
31
- {
32
- var parts = name . Split ( '.' ) ;
33
- switch ( parts [ 3 ] )
34
- {
35
- case "Kestrel" :
36
- return "KestrelHttpServer" ;
37
- case "HttpSys" :
38
- return "HttpSysServer" ;
39
- case "IIS" :
40
- return "IISIntegration" ;
41
- default :
42
- return parts [ 3 ] ;
43
- }
44
- }
45
- else if ( name . StartsWith ( "Microsoft.AspNetCore.Http" ) )
46
- {
47
- return "HttpAbstractions" ;
48
- }
49
- else if ( name . StartsWith ( "Microsoft.AspNetCore.Authentication" ) )
50
- {
51
- return "Security" ;
28
+ if ( name . StartsWith ( "Microsoft.AspNetCore.Server" , StringComparison . OrdinalIgnoreCase ) )
29
+ {
30
+ var parts = name . Split ( '.' ) ;
31
+ switch ( parts [ 3 ] )
32
+ {
33
+ case "Kestrel" :
34
+ return "KestrelHttpServer" ;
35
+ case "HttpSys" :
36
+ return "HttpSysServer" ;
37
+ case "IIS" :
38
+ return "IISIntegration" ;
39
+ default :
40
+ return parts [ 3 ] ;
52
41
}
53
- else if ( name . StartsWith ( "Microsoft.AspNetCore." , StringComparison . OrdinalIgnoreCase ) )
54
- {
55
- var parts = name . Split ( '.' ) ;
42
+ }
43
+ else if ( name . StartsWith ( "Microsoft.AspNetCore.Http" ) )
44
+ {
45
+ return "HttpAbstractions" ;
46
+ }
47
+ else if ( name . StartsWith ( "Microsoft.AspNetCore.Authentication" ) )
48
+ {
49
+ return "Security" ;
50
+ }
51
+ else if ( name . StartsWith ( "Microsoft.AspNetCore." , StringComparison . OrdinalIgnoreCase ) )
52
+ {
53
+ var parts = name . Split ( '.' ) ;
56
54
57
- switch ( parts [ 2 ] )
58
- {
59
- default :
60
- return parts [ 2 ] ;
61
- }
62
- }
63
- else if ( name . StartsWith ( "AuthSamples" , StringComparison . OrdinalIgnoreCase ) )
64
- {
65
- return name . Split ( '.' ) [ 0 ] ;
66
- }
67
- else if ( name . StartsWith ( "Microsoft.Extensions.Configuration" , StringComparison . OrdinalIgnoreCase ) )
68
- {
69
- return "Configuration" ;
70
- }
71
- else if ( name . StartsWith ( "ServerComparison" , StringComparison . OrdinalIgnoreCase ) )
72
- {
73
- return "ServerTests" ;
74
- }
75
- else if ( name . StartsWith ( "E2ETests" , StringComparison . OrdinalIgnoreCase ) )
76
- {
77
- return "MusicStore" ;
78
- }
79
- else if ( name . StartsWith ( "Microsoft.DotNet.Watcher" , StringComparison . OrdinalIgnoreCase ) )
80
- {
81
- return "DotNetTools" ;
82
- }
83
- else if ( name . StartsWith ( "Microsoft.EntityFrameworkCore" , StringComparison . OrdinalIgnoreCase ) )
84
- {
85
- return "EntityFrameworkCore" ;
86
- }
87
- else if ( name . StartsWith ( "FunctionalTests" , StringComparison . OrdinalIgnoreCase ) )
88
- {
89
- return "MvcPrecompilation" ;
90
- }
91
- else if ( name . StartsWith ( "Templates" , StringComparison . OrdinalIgnoreCase ) )
92
- {
93
- return "Templating" ;
94
- }
95
- else if ( name . StartsWith ( "MvcBenchmarks" , StringComparison . OrdinalIgnoreCase ) )
96
- {
97
- return "Performance" ;
98
- }
99
- else if ( name . StartsWith ( "Microsoft.VisualStudio.Web.CodeGeneration" , StringComparison . OrdinalIgnoreCase ) )
100
- {
101
- return "Scaffolding" ;
102
- }
103
- else if ( name . StartsWith ( "Microsoft.Data.Sqlite" ) )
104
- {
105
- return "Microsoft.Data.Sqlite" ;
106
- }
107
- else if ( name . StartsWith ( "IIS.FunctionalTests" ) )
108
- {
109
- return "IISIntegration" ;
110
- }
111
- else if ( name . StartsWith ( "Microsoft.Extensions.Primitives" ) )
55
+ switch ( parts [ 2 ] )
112
56
{
113
- return "Common" ;
114
- }
115
- else if ( name . StartsWith ( "Microsoft.Extensions.Options" ) )
116
- {
117
- return "Options" ;
118
- }
119
- else if ( name . StartsWith ( "Microsoft.Extensions.Http" ) )
120
- {
121
- return "HttpClientFactory" ;
122
- }
123
- else if ( name . StartsWith ( "System.Buffers.Tests" , StringComparison . OrdinalIgnoreCase ) ||
124
- name . StartsWith ( "System.IO.Pipelines.Tests" , StringComparison . OrdinalIgnoreCase ) ||
125
- name . StartsWith ( "Microsoft.Extensions.Internal.Test" , StringComparison . OrdinalIgnoreCase ) )
126
- {
127
- return "Home" ;
57
+ default :
58
+ return parts [ 2 ] ;
128
59
}
129
60
}
61
+ else if ( name . StartsWith ( "AuthSamples" , StringComparison . OrdinalIgnoreCase ) )
62
+ {
63
+ return name . Split ( '.' ) [ 0 ] ;
64
+ }
65
+ else if ( name . StartsWith ( "Microsoft.Extensions.Configuration" , StringComparison . OrdinalIgnoreCase ) )
66
+ {
67
+ return "Configuration" ;
68
+ }
69
+ else if ( name . StartsWith ( "ServerComparison" , StringComparison . OrdinalIgnoreCase ) )
70
+ {
71
+ return "ServerTests" ;
72
+ }
73
+ else if ( name . StartsWith ( "E2ETests" , StringComparison . OrdinalIgnoreCase ) )
74
+ {
75
+ return "MusicStore" ;
76
+ }
77
+ else if ( name . StartsWith ( "Microsoft.DotNet.Watcher" , StringComparison . OrdinalIgnoreCase ) )
78
+ {
79
+ return "DotNetTools" ;
80
+ }
81
+ else if ( name . StartsWith ( "Microsoft.EntityFrameworkCore" , StringComparison . OrdinalIgnoreCase ) )
82
+ {
83
+ return "EntityFrameworkCore" ;
84
+ }
85
+ else if ( name . StartsWith ( "FunctionalTests" , StringComparison . OrdinalIgnoreCase ) )
86
+ {
87
+ return "MvcPrecompilation" ;
88
+ }
89
+ else if ( name . StartsWith ( "Templates" , StringComparison . OrdinalIgnoreCase ) )
90
+ {
91
+ return "Templating" ;
92
+ }
93
+ else if ( name . StartsWith ( "MvcBenchmarks" , StringComparison . OrdinalIgnoreCase ) )
94
+ {
95
+ return "Performance" ;
96
+ }
97
+ else if ( name . StartsWith ( "Microsoft.VisualStudio.Web.CodeGeneration" , StringComparison . OrdinalIgnoreCase ) )
98
+ {
99
+ return "Scaffolding" ;
100
+ }
101
+ else if ( name . StartsWith ( "Microsoft.Data.Sqlite" ) )
102
+ {
103
+ return "Microsoft.Data.Sqlite" ;
104
+ }
105
+ else if ( name . StartsWith ( "IIS.FunctionalTests" ) )
106
+ {
107
+ return "IISIntegration" ;
108
+ }
109
+ else if ( name . StartsWith ( "Microsoft.Extensions.Primitives" ) )
110
+ {
111
+ return "Common" ;
112
+ }
113
+ else if ( name . StartsWith ( "Microsoft.Extensions.Options" ) )
114
+ {
115
+ return "Options" ;
116
+ }
117
+ else if ( name . StartsWith ( "Microsoft.Extensions.Configuration" , StringComparison . OrdinalIgnoreCase ) )
118
+ {
119
+ return "Configuration" ;
120
+ }
121
+ else if ( name . StartsWith ( "ServerComparison" , StringComparison . OrdinalIgnoreCase ) )
122
+ {
123
+ return "ServerTests" ;
124
+ }
125
+ else if ( name . StartsWith ( "E2ETests" , StringComparison . OrdinalIgnoreCase ) )
126
+ {
127
+ return "MusicStore" ;
128
+ }
129
+ else if ( name . StartsWith ( "Microsoft.DotNet.Watcher" , StringComparison . OrdinalIgnoreCase ) )
130
+ {
131
+ return "DotNetTools" ;
132
+ }
133
+ else if ( name . StartsWith ( "Microsoft.EntityFrameworkCore" , StringComparison . OrdinalIgnoreCase ) )
134
+ {
135
+ return "EntityFrameworkCore" ;
136
+ }
137
+ else if ( name . StartsWith ( "FunctionalTests" , StringComparison . OrdinalIgnoreCase ) )
138
+ {
139
+ return "MvcPrecompilation" ;
140
+ }
141
+ else if ( name . StartsWith ( "Templates" , StringComparison . OrdinalIgnoreCase ) )
142
+ {
143
+ return "Templating" ;
144
+ }
145
+ else if ( name . StartsWith ( "MvcBenchmarks" , StringComparison . OrdinalIgnoreCase ) )
146
+ {
147
+ return "Performance" ;
148
+ }
149
+ else if ( name . StartsWith ( "Microsoft.VisualStudio.Web.CodeGeneration" , StringComparison . OrdinalIgnoreCase ) )
150
+ {
151
+ return "Scaffolding" ;
152
+ }
153
+ else if ( name . StartsWith ( "Microsoft.Data.Sqlite" ) )
154
+ {
155
+ return "Microsoft.Data.Sqlite" ;
156
+ }
157
+ else if ( name . StartsWith ( "IIS.FunctionalTests" ) )
158
+ {
159
+ return "IISIntegration" ;
160
+ }
161
+ else if ( name . StartsWith ( "Microsoft.Extensions.Options" ) )
162
+ {
163
+ return "Options" ;
164
+ }
165
+ else if ( name . StartsWith ( "Microsoft.Extensions.Caching" ) )
166
+ {
167
+ return "Caching" ;
168
+ }
169
+ else if ( name . StartsWith ( "Microsoft.Extensions.Http" ) )
170
+ {
171
+ return "HttpClientFactory" ;
172
+ }
173
+ else if ( name . StartsWith ( "System.Buffers.Tests" , StringComparison . OrdinalIgnoreCase ) ||
174
+ name . StartsWith ( "System.IO.Pipelines.Tests" , StringComparison . OrdinalIgnoreCase ) ||
175
+ name . StartsWith ( "Microsoft.Extensions.Internal.Test" , StringComparison . OrdinalIgnoreCase ) )
176
+ {
177
+ return "AspNetCore" ;
178
+ }
130
179
131
- reporter . Warn ( $ "Don't know how to find the repo of tests like { testName } , defaulting to aspnet/Home ") ;
180
+ reporter . Warn ( $ "Don't know how to find the repo of tests like { testName } , defaulting to aspnet/AspNetCore ") ;
132
181
133
- return "Home " ;
182
+ return "AspNetCore " ;
134
183
}
135
184
}
136
185
0 commit comments