Skip to content

Commit 048a017

Browse files
author
Kapil Borle
authored
Merge pull request #682 from claudiospizzi/development
Allow the DSC test to be in a subdirectory
2 parents c61b40e + b464895 commit 048a017

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Rules/DscTestsPresent.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public IEnumerable<DiagnosticRecord> AnalyzeDSCResource(Ast ast, string fileName
5959
if (Directory.Exists(expectedTestsPath))
6060
{
6161
DirectoryInfo testsFolder = new DirectoryInfo(expectedTestsPath);
62-
FileInfo[] testFiles = testsFolder.GetFiles(testsQuery);
62+
FileInfo[] testFiles = testsFolder.GetFiles(testsQuery, SearchOption.AllDirectories);
6363
if (testFiles.Length != 0)
6464
{
6565
testsPresent = true;

0 commit comments

Comments
 (0)