diff --git a/README.md b/README.md index 1f7a82405..56032a661 100644 --- a/README.md +++ b/README.md @@ -118,6 +118,28 @@ It's possible to package the repo's example application with `electron-builder`. The configured Linux packaging(s) will be generated in folder `examples/electron/dist` +## Tests + +To run tests once, at the root of the project do: + +```shell +yarn test --verbose +``` + +To keep tests running do: + +```shell +yarn test --verbose --watch +``` + +### Test coverage + +The following command prints a coverage report to the terminal. As of now it covers all typescript files of the project, including those that are not supposed to have tests. + +```shell +yarn test --coverage --collectCoverageFrom='src/**/*.ts' +``` + ## Using the trace extension This section describes how to operate the Theia trace extension to view and analyze traces. The UI, view interactions, and UX are prelimiary and subject to revisions in the future. diff --git a/package.json b/package.json index 37aa0eecd..d8c53f6e7 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "start-all:browser": "yarn start:server & yarn start:browser", "start-all:electron": "yarn start:server & yarn start:electron", "lint": "lerna run lint", - "test": "lerna run test", + "test": "lerna run test --", "publish:latest": "lerna publish --registry=https://registry.npmjs.org/ --exact --no-git-tag-version --no-push", "publish:next": "lerna publish --registry=https://registry.npmjs.org/ --exact --canary minor --preid=next.$(git rev-parse --short HEAD) --dist-tag=next --no-git-tag-version --no-push --yes" }, diff --git a/packages/react-components/README.md b/packages/react-components/README.md index d2cb5fe10..069cd4040 100644 --- a/packages/react-components/README.md +++ b/packages/react-components/README.md @@ -7,25 +7,3 @@ The Trace Viewer react-components package contains views and utilities for visua - [Theia Trace Viewer Extension](https://github.com/theia-ide/theia-trace-extension) - [Trace Server Protocol](https://github.com/theia-ide/trace-server-protocol) - [Reference Trace Server - Download (Eclipse Trace Compass)](https://download.eclipse.org/tracecompass.incubator/trace-server/rcp/) - -## Tests - -To run tests once, at the root of the project do: - -```shell -yarn test --verbose -``` - -To keep tests running do: - -```shell -yarn test --verbose --watch -``` - -### Test coverage - -The following command prints a coverage report to the terminal. As of now it covers all typescript files of the project, including those that are not supposed to have tests. - -```shell -yarn test --coverage --collectCoverageFrom='src/**/*.ts' -```