1.0.12 • Published 11 months ago

@dragonshorn-studios/elyseum-cli v1.0.12

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

Elyseum CLI

Notice: This is a work-in-progress personal package. Use at your own risk.

Elyseum CLI is a command-line tool for coverage reporting. It provides various reporters to display coverage information in different formats.

Installation

You can install the package globally using npm:

npm install -g @dragonshorn/elyseum-cli

Usage

Commands

  • diff-coverage: Calculate coverage for changed files.
  • coverage: Calculate coverage for all files.

Options

  • --reporter.coverage: Coverage reporter(s), separated by commas. Available reporters: cli-table, github-pr-comment.
  • --reporter.coverage.colors: Use colors in coverage reporter (if supported).
  • --reporter.coverage.details: Show coverage details.
  • --reporter.coverage.quality-gate: Coverage quality gate.

Examples

Calculate Coverage for Changed Files

elyseum-cli diff-coverage --head <HEAD_COMMIT> --base <BASE_COMMIT>

Calculate Coverage for All Files

elyseum-cli coverage

Use Multiple Reporters

elyseum-cli diff-coverage --reporter.coverage=cli-table,github-pr-comment

Use Colors in Coverage Reporter

elyseum-cli diff-coverage --reporter.coverage.colors

Show Coverage Details

elyseum-cli diff-coverage --reporter.coverage.details

Set Coverage Quality Gate

elyseum-cli diff-coverage --reporter.coverage.quality-gate=80

Configuration

You can also configure the CLI using a .elyseum.yml file. Here is an example configuration:

reporter:
  coverage:
    cli-table:
      color: true
      diff: true
    github-pr-comment:
      file: "github.pr.coverage.md"
qualityGate: 80

License

This project is licensed under the MIT License.

1.0.12

11 months ago

1.0.11

11 months ago

1.0.10

11 months ago

1.0.9

11 months ago

1.0.8

11 months ago

1.0.7

11 months ago

1.0.6

11 months ago

1.0.5

11 months ago

1.0.4

11 months ago

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago

0.1.10

11 months ago

0.1.9

11 months ago

0.1.8

11 months ago

0.1.7

11 months ago

0.1.6

11 months ago

0.1.5

11 months ago

0.1.4

11 months ago

0.1.3

11 months ago

0.1.2

11 months ago

0.1.1

11 months ago

0.1.0

11 months ago