Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 8ec213b6 authored by David AMO GONZALEZ's avatar David AMO GONZALEZ
Browse files

feat(metrics): read env-var genveh metrics filepath

parent 20cd54f9
No related branches found
No related tags found
1 merge request!263Adapt VECTO for the new CI updates
......@@ -270,7 +270,11 @@ namespace TUGraz.VectoCore.Tests.Utils
var metricKey = $"GENVEH.{TestContext.CurrentContext.Test.MethodName}.{vehicleFile}.{cycleName}_({metricFieldFormatted},{expectedValue})";
var filePath = Path.Join(TestContext.CurrentContext.TestDirectory, "gitlab_metrics.log");
var metricsFile = Environment.GetEnvironmentVariable("GENVEH_METRICS_FPATH");
var filePath = !string.IsNullOrEmpty(metricsFile)
? metricsFile
: Path.Join(TestContext.CurrentContext.TestDirectory, "gitlab_metrics.log");
File.AppendAllLines(
filePath,
new List<string>() { $"{metricKey} {actual}" });
......
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