test: automated testing strategy
Implementing integration and unit tests using mocha and adding two documents that describe the testing strategy and guide how to write new tests.
Showing
docs/testing-strategy.md
0 → 100644
docs/writing-tests.md
0 → 100644
此差异已折叠。
... | ... | @@ -494,8 +494,11 @@ |
"vscode:prepublish": "npm run compile", | ||
"compile": "tsc -p ./", | ||
"watch": "tsc -watch -p ./", | ||
"test": "npm run compile && node ./out/runTest.js", | ||
"eslint": "eslint --ext .js .", | ||
"test-unit": "mocha ./src/**/**.test.js", | ||
"test-integration": "npm run compile && node ./out/runTest.js", | ||
"create-test-workspace": "npm run compile && node ./scripts/create_workspace_for_test_debugging.js", | ||
"test": "npm run test-unit && npm run test-integration", | ||
"eslint": "eslint --ext .js --ext .ts .", | ||
"autofix": "eslint --fix . && prettier --write '**/*.{js,json}'", | ||
"publish": "vsce publish", | ||
"webview": "cd src/webview ; npm install ; npm run watch", | ||
... | ... | @@ -504,16 +507,22 @@ |
"devDependencies": { | ||
"@types/mocha": "^7.0.1", | ||
"@types/node": "^13.7.0", | ||
"@types/temp": "^0.8.34", | ||
"@types/vscode": "^1.41.0", | ||
"conventional-changelog-cli": "^2.0.34", | ||
"@typescript-eslint/eslint-plugin": "^3.7.0", | ||
"@typescript-eslint/parser": "^3.7.0", | ||
"eslint": "^6.8.0", | ||
"eslint-config-airbnb-base": "^14.0.0", | ||
"eslint-config-prettier": "^6.10.0", | ||
"eslint-plugin-import": "^2.20.0", | ||
"eslint-plugin-prettier": "^3.1.2", | ||
"mocha": "^7.0.1", | ||
"msw": "^0.19.5", | ||
"prettier": "^1.19.1", | ||
"rewire": "^4.0.1", | ||
"simple-git": "^2.14.0", | ||
"temp": "^0.9.1", | ||
"typescript": "^3.7.5", | ||
"vsce": "^1.72.0", | ||
"vscode-test": "^1.3.0" | ||
... | ... |
src/git/git_remote_parser.js
0 → 100644
src/git/git_remote_parser.test.js
0 → 100644
test/create_tmp_workspace.ts
0 → 100644
test/integration/index.js
0 → 100644
test/unit_tests/index.ts
已删除
100644 → 0
想要评论请 注册 或 登录