Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Oct 19, 2025

Problem

The GitHub Actions workflow was failing when trying to upload code coverage to Coveralls with the error:

Error: ENOENT: no such file or directory, open 'ManagedCode.TimeSeries.Tests/coverage.info'

Root Cause

The CoverletOutput parameter in the test command was set to ManagedCode.TimeSeries.Tests/, which caused coverlet to create a nested directory structure. The coverage file was being generated at:

ManagedCode.TimeSeries.Tests/ManagedCode.TimeSeries.Tests/coverage.info

But the workflow was looking for it at:

ManagedCode.TimeSeries.Tests/coverage.info

Solution

Changed the CoverletOutput parameter from ManagedCode.TimeSeries.Tests/ to ./ so that the coverage file is generated directly in the test project directory where the workflow expects it.

Verification

  • ✅ .NET 9.0 is already installed and working correctly
  • ✅ All tests pass (71 passed, 1 skipped)
  • ✅ Coverage file is now generated at the expected location
  • ✅ Build succeeds with 0 errors

Fixes the issue where the coveralls action couldn't find the coverage.info file.

Original prompt

This section details on the original issue you should resolve

<issue_title>no coverage.info</issue_title>
<issue_description>Run coverallsapp/github-action@master
Using lcov file: ManagedCode.TimeSeries.Tests/coverage.info
Error: ENOENT: no such file or directory, open 'ManagedCode.TimeSeries.Tests/coverage.info'

instal dotnt9 and fix the issue</issue_description>

Comments on the Issue (you are @copilot in this section)

Fixes #1


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: KSemenenko <4385716+KSemenenko@users.noreply.github.com>
@sonarqubecloud
Copy link

Copilot AI changed the title [WIP] Fix missing coverage.info file issue Fix coverage.info file path issue in CI workflow Oct 19, 2025
Copilot AI requested a review from KSemenenko October 19, 2025 12:25
@KSemenenko KSemenenko marked this pull request as ready for review October 19, 2025 13:07
Copilot AI review requested due to automatic review settings October 19, 2025 13:07
@KSemenenko KSemenenko merged commit b041d61 into main Oct 19, 2025
3 checks passed
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a GitHub Actions workflow failure where the Coveralls action couldn't locate the code coverage file due to an incorrect output path configuration. The issue was caused by coverlet creating a nested directory structure when the CoverletOutput parameter included the project directory name.

Key Changes:

  • Updated the CoverletOutput parameter in the test command from ManagedCode.TimeSeries.Tests/ to ./ to ensure the coverage file is generated in the expected location

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

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.

no coverage.info

2 participants