Unverified 提交 7f131571 authored 作者: Will Chen's avatar Will Chen 提交者: GitHub

add docs on testing (#833)

上级 bbc50197
...@@ -23,3 +23,39 @@ npm install ...@@ -23,3 +23,39 @@ npm install
```sh ```sh
npm start npm start
``` ```
## Testing
### Unit tests
```sh
npm test
```
### E2E tests
Build the app for E2E testing:
```sh
npm run pre:e2e
```
> Note: you only need to re-build the app when changing the app code. You don't need to re-build the app if you're just updating the tests.
Run the whole e2e test suite:
```sh
npm run e2e
```
Run a specific test file:
```sh
npm run e2e e2e-tests/context_manage.spec.ts
```
Update snapshots for a test:
```sh
npm run e2e e2e-tests/context_manage.spec.ts -- --update-snapshots
```
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论