Replies: 1 comment
-
Thanks this post helped me resolve an issue with was experiencing trying to make use of the Glob. This post helped me to figure out I needed to use var directory = Directory(TEST_COVERAGE_OUTPUT_DIR);
var outputDirectory = Directory("./reports");
var reportSettings = new ReportGeneratorSettings
{
ArgumentCustomization = args => args.Append($"-reportTypes:HtmlInline_AzurePipelines")
};
ReportGenerator(new GlobPattern($"./{ directory}/*.cobertura.xml") , outputDirectory, reportSettings); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is intended as a heads-up to other devs who might face the same problem I did when upgrading build script to run with Cake 1.0.0. Scroll down for solution.
My build script contains the following task which worked fine up to Cake 0.38.5 but no longer works in Cake 1.0.0
In fact, my build script does not even build due to the following exception:
This problem appears to be due to the combination of multiple factors.
Solution
The solution, turns out to be quite simple. We simply need to specify a
FilePath
parameter when invoking the ReportGenerator alias. Like so:Beta Was this translation helpful? Give feedback.
All reactions