Skip to content

Commit 19a1fa4

Browse files
alyssachvastacopybara-github
authored andcommitted
Add unit test for input parsing and reconfigure python unit-testing
GitOrigin-RevId: b15f526d0fa80eddf91b8d6b8adba2eed723f0ca
1 parent 3e14db5 commit 19a1fa4

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
/.eslintcache
33
/.idea/
44
__pycache__
5-
5+
/.venv
66
# Ignore Mac DS_Store files
77
.DS_Store

library/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
"description": "",
44
"main": "index.js",
55
"scripts": {
6-
"test": "npm run test:ts && npm run test:py",
6+
"test": "npm run test:ts",
77
"test:ts": "NODE_NO_WARNINGS=1 TFJS_NODE_GPU=false jest",
8-
"test:py": "pytest evals/clustering_evals/*_test.py evals/autorating/*_test.py",
9-
"test-gpu": "TFJS_NODE_GPU=true jest && npm run test:py",
10-
"test-silent": "TFJS_NODE_GPU=false jest --silent && npm run test:py",
8+
"test:py": "python -m pytest",
9+
"test-gpu": "TFJS_NODE_GPU=true jest",
10+
"test-silent": "TFJS_NODE_GPU=false jest --silent",
1111
"test-watch": "TFJS_NODE_GPU=false nodemon --watch src --watch runner-cli --ext 'ts,json' -x 'npm run test-silent --onlyChanged'",
1212
"prepare": "husky && husky install",
1313
"lint": "eslint . --fix --max-warnings=0",

package-lock.json

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@
77
"workspaces": [
88
"api-server",
99
"library",
10-
"web-ui"
10+
"web-ui",
11+
"napolitan"
1112
],
1213
"scripts": {
13-
"test": "npm run test --workspaces",
14+
"test": "npm run test --workspaces && python3 -m pytest",
1415
"lint": "npm run lint --workspaces",
1516
"format": "npm run format --workspaces"
1617
},

0 commit comments

Comments
 (0)