Skip to content

Commit

Permalink
[misc] code coverage correction
Browse files Browse the repository at this point in the history
  • Loading branch information
rusher committed Oct 18, 2022
1 parent b30f203 commit 7e8696f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
11 changes: 11 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,17 @@ before_install:


install:
- |-
case $TRAVIS_OS_NAME in
windows)
powershell -Command Invoke-WebRequest -Uri https://uploader.codecov.io/latest/windows/codecov.exe -Outfile codecov.exe
;;
linux)
curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov
ls -lrt
;;
esac
- |-
case $TRAVIS_OS_NAME in
windows)
Expand Down
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@
"test:types": "eslint \"types/*.ts\" ",
"test:types-prettier": "prettier --write \"types/*.ts\"",
"test:prettier": "prettier --write \"{tools,lib,test,benchmarks}/**/*.js\"",
"coverage": "npm run coverage:test && npm run coverage:report",
"coverage": "npm run coverage:test && npm run coverage:create && npm run coverage:send",
"coverage:test": "nyc mocha --no-parallel --timeout 5000 \"test/**/*.js\"",
"coverage:report": "nyc report --reporter=text-lcov > coverage.lcov && codecov",
"coverage:report": "npm run coverage:create && npm run coverage:send",
"coverage:create": "nyc report --reporter=text-lcov > coverage.lcov",
"coverage:send": "./codecov --disable=gcov",
"benchmark": "node benchmarks/benchmarks-all.js",
"generate": "node ./tools/generate-mariadb.js"
},
Expand Down Expand Up @@ -58,7 +60,7 @@
"@typescript-eslint/parser": "^5.33.1",
"benchmark": "^2.1.4",
"chai": "^4.3.6",
"chalk": "^5.1.2",
"chalk": "^4.1.2",
"dom-parser": "^0.1.6",
"error-stack-parser": "^2.1.4",
"eslint": "^8.25.0",
Expand Down
1 change: 1 addition & 0 deletions types/mariadb-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ async function testMisc(): Promise<void> {
let currRow = 0;
const stream = prepare.queryStream([1]);
for await (const row of stream) {
console.log(row);
currRow++;
}
prepare.close();
Expand Down

0 comments on commit 7e8696f

Please sign in to comment.