Giter Club home page Giter Club logo

kover-report's People

Contributors

134130 avatar dependabot[bot] avatar edwardstock avatar leocolman avatar mi-kas avatar nicholaslythall avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

kover-report's Issues

Unable to publish Kover code coverage report as a comment in pull requests

Running into this issue and wondering if any recent changes has caused this.

My action is available here

HttpError: Resource not accessible by integration
    at /home/runner/work/_actions/mi-kas/kover-report/v1/webpack:/kover-report/node_modules/@octokit/request/dist-node/index.js:86:1
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

Error in reader.js

My automated build just started failing, and I'm at a loss as to what to do with this error:

Run mi-kas/[email protected]
with:
path: /home/runner/work/<repo>/<repo>/build/jacoco/jacoco_shared_result.xml
token: ***
title: Code Coverage
update-comment: true
env:
JAVA_HOME: /opt/hostedtoolcache/Java_Corretto_jdk/11.0.17.8.1/x64
JAVA_HOME_11_X64: /opt/hostedtoolcache/Java_Corretto_jdk/11.0.17.8.1/x64
Event is pull_request

Warning: The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

/home/runner/work/_actions/mi-kas/kover-report/v1.1/webpack:/kover-report/lib/reader.js:45
const lineCounter = (_a = counters.find(counter => counter['$'].type === 'LINE')) === null || _a === void 0 ? void 0 : _a['$'];
^
TypeError: Cannot read properties of undefined (reading 'find')
at getCoverageFromCounters (/home/runner/work/_actions/mi-kas/kover-report/v1.1/webpack:/kover-report/lib/reader.js:45:1)
at /home/runner/work/_actions/mi-kas/kover-report/v1.1/webpack:/kover-report/lib/reader.js:75:1
at Array.map (<anonymous>)
at /home/runner/work/_actions/mi-kas/kover-report/v1.1/webpack:/kover-report/lib/reader.js:68:1
at Array.reduce (<anonymous>)
at getFileCoverage (/home/runner/work/_actions/mi-kas/kover-report/v1.1/webpack:/kover-report/lib/reader.js:66:1)
at /home/runner/work/_actions/mi-kas/kover-report/v1.1/webpack:/kover-report/lib/action.js:47:1
at Generator.next (<anonymous>)
at fulfilled (/home/runner/work/_actions/mi-kas/kover-report/v1.1/webpack:/kover-report/lib/action.js:5:1)
at processTicksAndRejections (node:internal/process/task_queues:96:5)

Incorrect total coverage

Total coverage seems to be incorrect (higher than expected) compared to the coverage of individual files sometimes.
Would you please clarify what the reason might be?

Screenshot 2024-02-15 at 09 11 00
Screenshot 2024-02-15 at 09 54 17

Support workflow_dispatch

It's quite a problem for me that I can't trigger a workflow "by hand" even on a PR. What is the rationale for disallowing this?

HttpError: Not Found

Hello,
I would like to set up this Github action for my repository, but I get an error:

Run mi-kas/[email protected]
Event is push
HttpError: Not Found
    at /runner/_work/_actions/mi-kas/kover-report/v1.5/webpack:/kover-report/node_modules/@octokit/request/dist-node/index.js:86:1
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

Obviously it's not possible to getChangedFiles and I am wondering what can be the cause or how to debug it? I think token should have required permissions. The PR contains only version change for kover-report from v1 to v1.5.

Exclusions not working

I have a project that has kover 0.7.3 setup using exclusions. I'm getting different values on the kover report that I run manually vs the results on CI, and I detected that the exclusions are not accounted on the CI run

Support glob format for xml files

I have a multi-module project and would like to publish each individual coverage report without having to manually specify the file. However, if I use a glob format, I get the error:
Error: ENOENT: no such file or directory, open '**/reports/kover/report.xml'

Ideally this would work similarly to other test reporting actions (I am currently using dorny/test-reporter@v1, for example).

I realize I could use a merged report, but I was hoping to avoid that in this case.

Update usage example for PRs originating in forks

GitHub severely limits what access the default GITHUB_TOKEN for a PR originating from a fork has, which prevents the default configuration of this action from successfully posting the report as a PR comment. You can see an example failure here.

The README should be updated so that the example also works for this scenario.

Coverage by separate files

Hi!
Is it possible to have an output with changed file to coverage map? I would like to know if every single (changed) file hits min test coverage.

Unable to publish message

I have tried to use this action to publish the coverage with kover 0.7.3, but even if the step doesn't fail I can't see the message after the commits.

my pull request
my workflow

In the Action terminal, the output is

Run mi-kas/kover-report@v1
with:
path: /home/runner/work/CheatMultiplayer/CheatMultiplayer/model/build/reports/kover/report.xml
token: ***
title: Code Coverage
update-comment: false
min-coverage-overall: 80
min-coverage-changed-files: 80
coverage-counter-type: LINE
env:
JAVA_HOME: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.9-9/x64
JAVA_HOME_17_X64: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.9-9/x64
Event is push

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.