Skip to content

Commit

Permalink
Drop unused service test infrastructure
Browse files Browse the repository at this point in the history
Signed-off-by: Derrick Stolee <[email protected]>
  • Loading branch information
derrickstolee committed Apr 30, 2021
1 parent 8c3e89b commit 8a222f5
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 435 deletions.
17 changes: 0 additions & 17 deletions Scalar.FunctionalTests/GlobalSetup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,6 @@ public void RunBeforeAnyTests()
[OneTimeTearDown]
public void RunAfterAllTests()
{
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
{
string serviceLogFolder = Path.Combine(
Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData),
"Scalar",
ScalarServiceProcess.TestServiceName,
"Logs");

Console.WriteLine("Scalar.Service logs at '{0}' attached below.\n\n", serviceLogFolder);
foreach (string filename in TestResultsHelper.GetAllFilesInDirectory(serviceLogFolder))
{
TestResultsHelper.OutputFileContents(filename);
}

ScalarServiceProcess.UninstallService();
}

PrintTestCaseStats.PrintRunTimeStats();
}
}
Expand Down
4 changes: 0 additions & 4 deletions Scalar.FunctionalTests/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,6 @@ public static void Main(string[] args)

private static void RunBeforeAnyTests()
{
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
{
ScalarServiceProcess.InstallService();
}
}
}
}

This file was deleted.

3 changes: 1 addition & 2 deletions Scalar.FunctionalTests/Tools/ScalarHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ public static string GetObjectsRootFromGitConfig(string repoRoot)

public static string GetInternalParameter()
{
return $"\"{{\\\"ServiceName\\\":\\\"{ScalarServiceProcess.TestServiceName}\\\"," +
"\\\"StartedByService\\\":false}\"";
return $"\"{}\"";
}
}
}
Loading

0 comments on commit 8a222f5

Please sign in to comment.