File tree Expand file tree Collapse file tree 2 files changed +1
-10
lines changed
src/coverlet.core/Helpers
test/coverlet.core.tests/Helpers Expand file tree Collapse file tree 2 files changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -264,8 +264,7 @@ private static IEnumerable<string> ExpandIncludeDirectories(string[] includeDire
264264 ? Path . GetFullPath ( Path . Combine ( moduleDirectory , includeDirectory ) )
265265 : includeDirectory ) . TrimEnd ( '*' ) ;
266266
267- if ( ! Directory . Exists ( fullPath ) )
268- throw new DirectoryNotFoundException ( $ "The included directory '{ fullPath } ' does not exist.") ;
267+ if ( ! Directory . Exists ( fullPath ) ) continue ;
269268
270269 if ( includeDirectory . EndsWith ( "*" , StringComparison . Ordinal ) )
271270 result . AddRange ( Directory . GetDirectories ( fullPath ) ) ;
Original file line number Diff line number Diff line change @@ -225,14 +225,6 @@ public void TestIsTypeExcludedAndIncludedWithMatchingAndMismatchingFilter(string
225225 Assert . True ( result ) ;
226226 }
227227
228- [ Fact ]
229- public void TestIncludeDirectoryInvalidThrowsDirectoryNotFoundException ( )
230- {
231- string module = typeof ( InstrumentationHelperTests ) . Assembly . Location ;
232- Assert . Throws < DirectoryNotFoundException > ( ( ) =>
233- InstrumentationHelper . GetCoverableModules ( module , new [ ] { "Foobar" } ) ) ;
234- }
235-
236228 [ Fact ]
237229 public void TestIncludeDirectories ( )
238230 {
You can’t perform that action at this time.
0 commit comments