GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add a -CoverageFile for Convert-CodeCoverage · Issue #6 · PoshCode/ModuleBuilder

Add a -CoverageFile for Convert-CodeCoverage #6

New issue
Copy link
New issue
Copy link
Open
Open
Add a -CoverageFile for Convert-CodeCoverage#6
Copy link
Labels
20 - Enhancement
Milestone
1.6.0

Description

@Jaykul
Jaykul
opened on May 4, 2018
Issue body actions

As a module author
In order to understand my code coverage
I need to use CodeCov.io and other such tools


Basically I just want to overwrite Pester's coverage file with one based on the modified output of Convert-CodeCoverage. If that's already possible by piping this to some Pester functions, can you put an example of how to do it in the help for Convert-CodeCoverage so others can figure out how -- or better yet, just add a parameter and do it yourself...

Reacted by James Ruskin

Activity

  1. Jaykul
    added
    20 - Enhancement
    on May 4, 2018
  2. Jaykul
    added this to the 1.2.0 milestone on Oct 5, 2019
  3. Jaykul
    added a commit that references this issue on Dec 19, 2019

    Update tests so they work better in VSCode

    4e2a651
  4. johlju commented on Jun 19, 2022

    @johlju
    johlju
    on Jun 19, 2022
    Contributor
    More actions

    There is code here that might help with this issue. Happy to see this functionality be implemented in ModuleBuilder instead so that we can just call a command from the task. Anyway, hope anything can be reused or used as an inspiration.

    https://github.com/gaelcolas/Sampler/blob/bc25ba558383d3ddba7ded9a2e51233f2bc9d4e7/.build/tasks/JaCoCo.coverage.build.ps1#L328-L457

    The main activities the task does:

    • Coverts hits and misses using this modules' ConvertTo-SourceLineNumber (but uses the alias Convert-LineNumber)
    • Create a new JaCoCo file from the converted coverage.
    • Updated the JaCoCo statistics in the new JaCoCo file.
    Reacted by Joel Bennett
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    20 - Enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      • 1.6.0

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.