Skip to content

Add test execution and codecov integration to nuke build#3

Merged
ScarletKuro merged 2 commits intomasterfrom
copilot/add-nuke-build-test-support
Jan 15, 2026
Merged

Add test execution and codecov integration to nuke build#3
ScarletKuro merged 2 commits intomasterfrom
copilot/add-nuke-build-test-support

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jan 15, 2026

Adds test execution to the nuke build pipeline and configures codecov for coverage reporting on every push.

Changes

  • Build.cs: Added Test target that runs test projects with coverlet coverage collection, generating cobertura XML reports to artifacts/coverage/
  • Test project: Added coverlet.msbuild package for MSBuild-integrated coverage collection
  • CI workflow: Updated continuous.yml to run tests on push and upload coverage to Codecov using CODECOV_TOKEN secret

Coverage Collection

Uses Nuke's native coverlet support via MSBuild properties:

DotNetTest(_ => _
    .SetProjectFile(project.Path)
    .SetConfiguration(Configuration)
    .EnableNoBuild()
    .EnableCollectCoverage()
    .SetCoverletOutputFormat(CoverletOutputFormat.cobertura)
    .SetCoverletOutput(CoverageDirectory / $"{project.Name}.xml")
);

Coverage upload is handled by the official codecov action in the workflow rather than in the build script itself.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • api-v2v3search-0.nuget.org
    • Triggering command: /home/REDACTED/work/Scarlet.System.Text.Json.DateTimeConverter/Scarlet.System.Text.Json.DateTimeConverter/build/bin/Debug/_build /home/REDACTED/work/Scarlet.System.Text.Json.DateTimeConverter/Scarlet.System.Text.Json.DateTimeConverter/build/bin/Debug/_build Test (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

Add support to run test from the nuke.build
they also should run during on push
Also add codecov support, there is CODECOV_TOKEN added in the repo.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: ScarletKuro <19953225+ScarletKuro@users.noreply.github.com>
@ScarletKuro ScarletKuro marked this pull request as ready for review January 15, 2026 21:05
Copilot AI changed the title [WIP] Add support for tests in nuke.build with Codecov Add test execution and codecov integration to nuke build Jan 15, 2026
@codecov
Copy link
Copy Markdown

codecov bot commented Jan 15, 2026

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

@ScarletKuro ScarletKuro merged commit 0a089ba into master Jan 15, 2026
3 checks passed
@ScarletKuro ScarletKuro deleted the copilot/add-nuke-build-test-support branch January 15, 2026 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants