1.0.12 • Published 9 months ago

@dragonshorn-studios/elyseum-cli v1.0.12

Weekly downloads
-
License
MIT
Repository
github
Last release
9 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

9 months ago

1.0.11

9 months ago

1.0.10

9 months ago

1.0.9

9 months ago

1.0.8

9 months ago

1.0.7

9 months ago

1.0.6

9 months ago

1.0.5

9 months ago

1.0.4

9 months ago

1.0.3

9 months ago

1.0.2

9 months ago

1.0.1

9 months ago

0.1.10

9 months ago

0.1.9

9 months ago

0.1.8

9 months ago

0.1.7

9 months ago

0.1.6

9 months ago

0.1.5

9 months ago

0.1.4

9 months ago

0.1.3

9 months ago

0.1.2

9 months ago

0.1.1

9 months ago

0.1.0

9 months ago