同步操作将从 Gitee 极速下载/theia 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
Before running make sure to compile tests with compile
or watch
scripts.
To run tests on theia run:
yarn test
This will run all CI enabled tests.
If you want to run all tests for a particular Theia extension, execute the following command from the root:
npx run test @theia/extension-name
Add the following npm script to the package.json
of the desired Theia extension, if you would like to enable the watch mode for the tests.
"test:watch": "theiaext test:watch"
After editing the package.json
you can run the tests in watch mode with:
npx run test:watch @theia/extension-name
The test directory structure is as follows:
src/node/foo.ts
: Code to be tested.src/node/foo.spec.ts
: Unit tests for foo.ts.src/node/test/test-helper.ts
: Any mocks, fixture or utility test code
goes here.src/node/foo.slow-spec.ts
: Any slow running tests such as integration
tests should be labeled as such so that they can be excluded.src/browser/foo.ui-spec.ts
: UI tests.test-resources
: Any resources needed for the tests like configuration
files or scripts.test-resources/ui
: Resources for UI testing.test-resources/slow
: Resources for slow running tests.Unit tests named as foo.spec.ts
will be published since they're also for
documentation purposes.
*ui-spec.ts
*slow-spec.ts
test-resources
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。