Giter Site home page Giter Site logo

Comments (6)

macdoum1 avatar macdoum1 commented on May 5, 2024

@joanromano How do you run the plugin multiple times for multiple schemes?

Running xcov.report(...) multiple times within the same Dangerfile seems to be resulting in Danger only commenting with the markdown report of the last one specified.

from danger-xcov.

joanromano avatar joanromano commented on May 5, 2024

Hey @macdoum1 what I do is generate the markdown manually. You can do so by accessing your generated Report's targets property and then markdown_value in each of them. You can find all that information in Xcov models

from danger-xcov.

macdoum1 avatar macdoum1 commented on May 5, 2024

from danger-xcov.

Vadimkomis avatar Vadimkomis commented on May 5, 2024

@joanromano I'm trying to accomplish exactly what you did. Can you give more specific example of how you managed to generate code coverage for different test targets, without Danger overwriting it?

from danger-xcov.

joanromano avatar joanromano commented on May 5, 2024

@Vadimkomis sorry I don't have that code with me anymore, but as I said before you should be able to access all the generated Reports and manually tweak them

from danger-xcov.

Vadimkomis avatar Vadimkomis commented on May 5, 2024

@joanromano are you talking about this function in the Xcov modals:
def markdown_value markdown = "## Current coverage for #{@name} is `#{@displayable_coverage}`\n" return markdown << "✅ *No files affecting coverage found*\n\n---\n" if @files.empty? markdown << "Files changed | - | - \n--- | --- | ---\n" markdown << "#{@files.map { |file| file.markdown_value }.join("")}\n---\n" markdown end

from danger-xcov.

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.