mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-04-09 23:04:02 +02:00
It's a first step to add code coverage. In order to get the code coverage report locally, you can run the following command: ```bash npx gulp unittestcli --coverage ``` The code coverage report will be generated in the `./build/coverage` directory. And the report can be consulted by opening: http://localhost:8888/build/coverage/index.html A GitHub workflow has also been added to run the unit tests with code coverage on each push and pull request. The report will be uploaded to Codecov.
14 lines
342 B
JSON
14 lines
342 B
JSON
{
|
|
"reporter": ["text", "html", "lcov"],
|
|
"include": [
|
|
"build/lib-legacy/core/**/*.js",
|
|
"build/lib-legacy/display/**/*.js",
|
|
"build/lib-legacy/shared/**/*.js"
|
|
],
|
|
"exclude": ["build/lib-legacy/test/**"],
|
|
"all": false,
|
|
"check-coverage": false,
|
|
"report-dir": "./build/coverage",
|
|
"temp-directory": "./build/.c8_output"
|
|
}
|