Skip to content

Custom results output #6

Description

@jcline

From the readme:

A standard output format that can be used with available visualizers would be very useful.

Right now I have a janky local modification we're using to integrate with http://phabricator.org/, but it would be nice to refactor this into something less hacky.

I was thinking something like this would work:

public enum CoverageType {
  Hit,
  Miss
}

public struct Result {
  public int startLine;
  public int endLine;
  public string path;
  public CoverageType coverage;
}

public interface IResults {
  void Write(IList<Result> results);
}

Then users can add their own IResults and it would be simple to add a configuration option to coverage.json.

If this seems reasonable to you then I'd be happy to write it and put up a pull request?

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions