Closed Adityanr closed 2 years ago
Hi @Marusyk Can you please register grok.NET repository at https://coveralls.io ?
I have done the following:
The following needs to be done now:
Thank you!
Hi @Adityanr wow, thank you very much for this
I've added the token as a Repository secret. Here is markdown
[![Coverage Status](https://coveralls.io/repos/github/Marusyk/grok.net/badge.svg?branch=main)](https://coveralls.io/github/Marusyk/grok.net?branch=main)
Hi @Adityanr wow, thank you very much for this
I've added the token as a Repository secret. Here is markdown
[![Coverage Status](https://coveralls.io/repos/github/Marusyk/grok.net/badge.svg?branch=main)](https://coveralls.io/github/Marusyk/grok.net?branch=main)
Hi @Marusyk I have update README.md with the new badge for main branch! It will display new coverage after main branch CI pipeline build is run. All it needs now is github workflow update. I don't seem to have a push access for that. Can you please make that change if this PR gets merged?
@Adityanr Could you please check Windows.yml
sure, lemme check @Marusyk
Hi, @Marusyk The build steps are working fine locally. Is the windows build server running as a container? If so maybe the user does not have appropriate permissions to register the opencover profiler. The following modification to Run-Unit-Tests target can be made for this to work:
Task("Run-Unit-Tests")
.IsDependentOn("Build")
.Does(() =>
{
var projectFile = Directory("./src/Grok.Net.Tests") + File("Grok.Net.Tests.csproj");
if(!BuildSystem.IsLocalBuild)
{
DotNetCoreTest(System.IO.Path.GetFullPath(projectFile), new DotNetCoreTestSettings()
{
Configuration = configuration
});
}
else
{
OpenCover(tool => {
tool.DotNetCoreTest(
System.IO.Path.GetFullPath(projectFile),
new DotNetCoreTestSettings()
{
Configuration = configuration
}
);
},
testResultFile, new OpenCoverSettings() {
Filters = { "-[*xunit*]*", "-[GrokNetTests.UnitTests]*", "+[*]*" },
Register = "User"
}
);
}
});
Added the Register = "User"
for OpenCoverSettings
.
Should i raise another PR for the same?
Should i raise another PR for the same? Yes please
build.cake modified to generate coverage badge in README.md using opencover and reportgenerator Closes #30