GithubHelp home page GithubHelp logo

Comments (9)

rahul181198 avatar rahul181198 commented on June 12, 2024 1

I get this in exception . When I try above syntax

Unrecognized argument: --http-timeout

from codacy-coverage-reporter.

rahul181198 avatar rahul181198 commented on June 12, 2024 1

I already tried the same syntax but it gives me log that it is sending the coverage report but I get no log about it being successful and being received like I used to get before .My build though is successful but i see no coverage in dashboard.

from codacy-coverage-reporter.

github-actions avatar github-actions commented on June 12, 2024

Internal ticket created : DOCS-381

from codacy-coverage-reporter.

prcr avatar prcr commented on June 12, 2024

Currently, the Codacy Coverage Reporter GitHub Action doesn't support the --http-timeout, so these troubleshooting instructions apply only to the "regular" CLI.

from codacy-coverage-reporter.

rahul181198 avatar rahul181198 commented on June 12, 2024

how to add this flag in the gradle task format

from codacy-coverage-reporter.

prcr avatar prcr commented on June 12, 2024

Hello @rahul181198,

I haven't actually tested this, but by looking at our example Gradle tasks I expect that adding the flag like in this example should work:

[...]

task sendCoverageToCodacy(type: JavaExec, dependsOn: jacocoTestReport) {
    main = "com.codacy.CodacyCoverageReporter"
    classpath = configurations.codacy
    args = [
            "report",
            "--http-timeout",
            "10000",
            "-l",
            "Java",
            "-r",
            "${buildDir}/reports/jacoco/test/jacocoTestReport.xml"
    ]
}

Let us know if this example is enough to made it work or if you still need help.

from codacy-coverage-reporter.

prcr avatar prcr commented on June 12, 2024

I verified that the last Codacy Coverage Reporter version that we published to the Maven Central Repository is quite outdated and doesn't include the --http-timeout flag yet, which was added on version 12.3.0:

https://search.maven.org/artifact/com.codacy/codacy-coverage-reporter

I'm checking this internally with the Engineering teams and I'll let you know once I have an update.

from codacy-coverage-reporter.

prcr avatar prcr commented on June 12, 2024

Hello again @rahul181198,

After your feedback, we're updating our Gradle task example to ensure that it uses the latest version of the Codacy Coverage Reporter.

Please check out the changes in #390 and let us know if this new template works for you. In particular, you can now add the --http-timeout flag as an extra argument at the end of the command for running the Coverage Reporter.

from codacy-coverage-reporter.

prcr avatar prcr commented on June 12, 2024

@rahul181198, it's possible that there's now a different issue that may be causing that. Could you please reach out to [email protected] providing the details on how you're running the Codacy Coverage Reporter and the resulting logs so that our Support team can help you troubleshoot your setup?

from codacy-coverage-reporter.

Related Issues (20)

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.