Skip to content

Commit a6d1c22

Browse files
authored
Merge pull request #22 from huiren-jiang/github#96
Running test suite with /logger:html does not generate HTML files per test case #96
2 parents 5aaeb58 + 2e7b7b7 commit a6d1c22

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/htmltestlogger/TxtToJSON.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,12 +182,12 @@ private void GenerateCaseCategoryFile()
182182
/// <returns>Returns case name(key) and categories(value)</returns>
183183
private Dictionary<string, List<string>> GetTestCaseCategories()
184184
{
185-
Dictionary<string, List<string>> testCases = new Dictionary<string, List<string>>();
185+
Dictionary<string, List<string>> testCases = new Dictionary<string, List<string>>();
186186
DirectoryInfo info = new DirectoryInfo(Directory.GetCurrentDirectory());
187187
bool existBatch = false;
188188
if (info.FullName.EndsWith("Batch"))
189189
existBatch = true;
190-
190+
191191
string fullPath = existBatch ? info.Parent.FullName : info.FullName;
192192
foreach (string dllPath in dllFiles)
193193
{
@@ -340,9 +340,9 @@ private List<string> GetCaptureFilesPath()
340340
existBatch = true;
341341
string fullPath = existBatch ? info.Parent.FullName : info.FullName;
342342
string cfgFolder = Path.Combine(fullPath, "bin");
343-
string[] ptfconfigFiles = Directory.GetFiles(cfgFolder, "*.ptfconfig", SearchOption.TopDirectoryOnly);
344343
try
345344
{
345+
string[] ptfconfigFiles = Directory.GetFiles(cfgFolder, "*.ptfconfig", SearchOption.TopDirectoryOnly);
346346
foreach (string configFile in ptfconfigFiles)
347347
{
348348
XmlDocument configXml = new XmlDocument();

0 commit comments

Comments
 (0)