Example #1
0
 private static string CreateTestSpecificFolder(TestContext testContext) =>
 testDirectoriesMap.GetOrAdd(
     testContext.FullyQualifiedTestClassName + testContext.TestName,
     testName =>
 {
     var uniqueDir = UniqueDirectory.CreateNext(testContext.TestDir);
     // Save the unique directory name into a file to improve the debugging experience.
     File.AppendAllText(Path.Combine(testContext.TestDir, "testmap.txt"), $"{testContext.TestName} : {uniqueDir}{Environment.NewLine}");
     return(Path.Combine(testContext.TestDir, uniqueDir));
 });
Example #2
0
 public override bool Execute()
 {
     UniqueName = UniqueDirectory.CreateNext(Path);
     UniquePath = System.IO.Path.Combine(Path, UniqueName);
     return(true);
 }