Skip to content

Commit

Permalink
docs: rephrase cheat_sheet.md
Browse files Browse the repository at this point in the history
Co-authored-by: Kirill Kononovich <41591254+kirkonru@users.noreply.github.com>
Signed-off-by: Alexey Igrychev <alexey.igrychev@flant.com>
  • Loading branch information
alexey-igrychev and kirkonru committed May 23, 2022
1 parent b63e450 commit 04a2045
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/pages_en/reference/cheat_sheet.md
Expand Up @@ -60,19 +60,19 @@ werf export --repo ghcr.io/group/project --tag ghcr.io/group/otherproject/%image

### Running one-off tasks (unit-tests, lints, one-time jobs)

Use the following command to run tests in the previously built `frontend_image` in the Kubernetes Pod:
Use the following command to run the tests in the previously built `frontend_image` in the Kubernetes Pod:

```shell
werf kube-run frontend_image --repo ghcr.io/group/project -- npm test
```

Run tests in Pod, but copy file with secret env vars into container before running the command:
Run the tests in a Pod, but copy the file with the secret env variables to a container before executing the command:

```shell
werf kube-run frontend_image --repo ghcr.io/group/project --copy-to ".env:/app/.env" -- npm run e2e-tests
```

Run tests in Pod and get the coverage report:
Run the tests in a Pod and get the coverage report:

```shell
werf kube-run frontend_image --repo ghcr.io/group/project --copy-from "/app/report:." -- go test -coverprofile report ./...
Expand Down

0 comments on commit 04a2045

Please sign in to comment.