1.0.6 • Published 2 years ago

@vodyani/coverage-report v1.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Vodyani coverage-report

📚 During jest testing, it was used to generate mochawesome compliant json formatted reports.

Npm Npm License Workflow Known Vulnerabilities

Installation

npm install --save-dev @vodyani/coverage-report

Usage

Typically, I would add the testResultsProcessor property stated in JEST to with the CI/CD execution and pass it in to take effect.

First, you should define the test commands in the package.json file beforehand.

{
  "scripts": {
    "test": "jest",
    "test:coverage": "jest --coverage"
  }
}

And

npm run test --ci --testResultsProcessor="@vodyani/coverage-report"

Output

The reporter writes to report.json by default. The JEST_REPORT_JSON environment variable can be used to alter the file name.

Just like this.

JEST_REPORT_JSON="./coverage/report.json" npm run test:coverage --ci --testResultsProcessor="@vodyani/coverage-report"

Example

Click here to view an example of github activities in action.

Contributing

  • ❤ building

Donations

  • ❤ building

Links

  • ❤ building

License

Vodyani coverage-report is MIT licensed.

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago