Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS will be completely phased out by mid-2025. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit c12f0800 authored by Harald Martini's avatar Harald Martini
Browse files

Fixed illegal path issue that occured because of some Testnames

parent bd1e7700
No related branches found
No related tags found
No related merge requests found
......@@ -81,6 +81,11 @@ namespace Vecto3GUI2020Test
var className = TestContext.CurrentContext.Test.ClassName.Replace("Vecto3GUI2020Test.", "");
var testName = TestContext.CurrentContext.Test.Name;
var invalidPathChars = Path.GetInvalidPathChars();
foreach (var invalidPathChar in invalidPathChars) {
testName = testName.Replace(invalidPathChar, '_');
}
var testOutputDirPath = Path.Combine(SourceDirectoryRoot + @"\Testdata\output\" + className + "\\" + testName);
//Create output directory
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment