Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ Before you file an issue, make sure you've checked the following:
- Many changes to the Dapr runtime may require changes to the API. In that case, the best place to discuss the potential feature is the main [Dapr repo](https://github.com/dapr/dapr).
- Other examples could include bindings, state stores or entirely new components.

### Self-Assigning Issues

Contributors can self-assign open issues in this repository using [dapr-bot](https://docs.dapr.io/contributing/daprbot/). Comment `/assign` on the issue you would like to work on, and `dapr-bot` (configured in [`.github/workflows/dapr-bot.yml`](https://github.com/dapr/cli/blob/master/.github/workflows/dapr-bot.yml)) will automatically assign it to you. For a full list of supported bot commands (such as `/unassign`), see the [Daprbot documentation](https://docs.dapr.io/contributing/daprbot/).

## Contributing to Dapr

This section describes the guidelines for contributing code / docs to Dapr.
Expand Down
33 changes: 33 additions & 0 deletions docs/development/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,39 @@ make build GOOS=linux GOARCH=amd64
make test
```

### Run E2E tests

Before running standalone E2E tests locally, build the Dapr CLI binary so that it is placed in `./dist/{os}_{arch}/release/`:

```bash
make build
```

Standalone E2E tests require `DAPR_RUNTIME_PINNED_VERSION` (and `DAPR_DASHBOARD_PINNED_VERSION` when testing dashboard versions) to be set in your environment so the test harness knows which Dapr runtime and dashboard versions to initialize:

```bash
export DAPR_RUNTIME_PINNED_VERSION=1.15.0
export DAPR_DASHBOARD_PINNED_VERSION=0.15.0
```

* Run the full standalone E2E test suite:

```bash
make test-e2e-sh
```

* Run an individual standalone E2E test (note the required `--tags=e2e` build tag):

```bash
go test -v --tags=e2e ./tests/e2e/standalone/... -run TestStandaloneInit
```

* Run standalone `dapr run -f` template E2E tests (which use the `template` build tag):

```bash
go test -v --tags=template ./tests/e2e/standalone/... -run TestRunWithTemplateFile
```

### Debug Dapr CLI

We highly recommend to use [VSCode with Go plugin](https://marketplace.visualstudio.com/items?itemName=ms-vscode.Go) for your productivity. If you want to use the different editors, you can find the [list of editor plugins](https://github.com/go-delve/delve/blob/master/Documentation/EditorIntegration.md) for Delve.
Expand Down