Skip to content

Commit 7e8696f

Browse files
committed
[misc] code coverage correction
1 parent b30f203 commit 7e8696f

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

.travis.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,17 @@ before_install:
1313

1414

1515
install:
16+
- |-
17+
case $TRAVIS_OS_NAME in
18+
windows)
19+
powershell -Command Invoke-WebRequest -Uri https://uploader.codecov.io/latest/windows/codecov.exe -Outfile codecov.exe
20+
;;
21+
linux)
22+
curl -Os https://uploader.codecov.io/latest/linux/codecov
23+
chmod +x codecov
24+
ls -lrt
25+
;;
26+
esac
1627
- |-
1728
case $TRAVIS_OS_NAME in
1829
windows)

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@
1616
"test:types": "eslint \"types/*.ts\" ",
1717
"test:types-prettier": "prettier --write \"types/*.ts\"",
1818
"test:prettier": "prettier --write \"{tools,lib,test,benchmarks}/**/*.js\"",
19-
"coverage": "npm run coverage:test && npm run coverage:report",
19+
"coverage": "npm run coverage:test && npm run coverage:create && npm run coverage:send",
2020
"coverage:test": "nyc mocha --no-parallel --timeout 5000 \"test/**/*.js\"",
21-
"coverage:report": "nyc report --reporter=text-lcov > coverage.lcov && codecov",
21+
"coverage:report": "npm run coverage:create && npm run coverage:send",
22+
"coverage:create": "nyc report --reporter=text-lcov > coverage.lcov",
23+
"coverage:send": "./codecov --disable=gcov",
2224
"benchmark": "node benchmarks/benchmarks-all.js",
2325
"generate": "node ./tools/generate-mariadb.js"
2426
},
@@ -58,7 +60,7 @@
5860
"@typescript-eslint/parser": "^5.33.1",
5961
"benchmark": "^2.1.4",
6062
"chai": "^4.3.6",
61-
"chalk": "^5.1.2",
63+
"chalk": "^4.1.2",
6264
"dom-parser": "^0.1.6",
6365
"error-stack-parser": "^2.1.4",
6466
"eslint": "^8.25.0",

types/mariadb-tests.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ async function testMisc(): Promise<void> {
100100
let currRow = 0;
101101
const stream = prepare.queryStream([1]);
102102
for await (const row of stream) {
103+
console.log(row);
103104
currRow++;
104105
}
105106
prepare.close();

0 commit comments

Comments
 (0)