зеркало из https://github.com/Azure/iotedgedev.git
Refactor some wording and fix deployment link
This commit is contained in:
Родитель
7c263c26d0
Коммит
94ded6dd19
|
@ -4,7 +4,7 @@ This section describes how to get your developer workspace running for the first
|
|||
|
||||
Please fork, branch and pull-request any changes you'd like to make. For more information on how to create a fork, see: [Fork a repo - GitHub Docs](https://docs.github.com/en/get-started/quickstart/fork-a-repo)
|
||||
|
||||
## Workspace Setup
|
||||
## Workspace setup
|
||||
|
||||
1. Clone this repository
|
||||
|
||||
|
@ -33,13 +33,17 @@ Please fork, branch and pull-request any changes you'd like to make. For more in
|
|||
pip install -e .
|
||||
```
|
||||
|
||||
## Run Tests
|
||||
## Run and debug tests
|
||||
|
||||
You can choose one of these following commands to run the tests:
|
||||
To **run** and **debug** the tests **individually** you can use the VSCode Test Runner UI provided by the [Python extension](https://marketplace.visualstudio.com/items?itemName=ms-python.python) (installed by default in the devcontainer).
|
||||
|
||||
An alternative way to **debug** is to select `Python: debug test file` in the `Run and debug` tab of vscode, open the test file you'd like to debug and hit `F5`.
|
||||
|
||||
You can choose one of these following commands to easily **run all** tests:
|
||||
|
||||
```sh
|
||||
# Run all tests with all python interpreters (fails for the ones not installed)
|
||||
# This is the command thats run in the pipeline for all python versions
|
||||
# This is the command that runs in the pipeline for all python versions
|
||||
make test-all
|
||||
# Run tests with tox in python version 3.9 (the python version installed in the devcontainer)
|
||||
tox -e py39
|
||||
|
@ -47,13 +51,4 @@ tox -e py39
|
|||
make test
|
||||
```
|
||||
|
||||
In addition this this, you can also run and debug the tests individually using the VSCode test runner UI if the Python extension is installed (installed by default in the devcontainer).
|
||||
|
||||
It is recommended to run all tests with `tox -e py39` or `make test-all` at least once before making the PR. The pytest test runner environment is slightly different from tox, so some tests may pass with that and not in tox, resulting in failures in the pipeline.
|
||||
|
||||
### VS Code Debugging
|
||||
|
||||
You can debug with VSCode in two ways:
|
||||
|
||||
- Install the Python extension, navigate to the test in the test file you'd like to run, right click on the VSCode test runner arrow next to the test and select `Debug test`.
|
||||
- Select 'Python: debug test file' in the `Run and debug` tab of vscode, open the test file you'd like to debug and hit `F5`
|
||||
> It is recommended to run all tests with `tox -e py39` or `make test-all` at least once before making the PR. The pytest test runner environment is slightly different from tox, so some tests may pass with that and not in tox, resulting in failures in the pipeline.
|
||||
|
|
|
@ -37,7 +37,9 @@ az ad sp create-for-rbac -n "iotedgedev01"
|
|||
|
||||
> Note: Running `iotedgedev iothub setup` without any other parameters will save you time from looking up the required parameter values. The command will help you choose the parameters in an interactive way.
|
||||
|
||||
Alternatively, you can deploy the IoT Hub **and** Container Registry with this **Deploy to Azure** template: [Azure Deployment](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Fazure%2Fiotedgedev%2Fmaster%2Fassets%2Fdeploy%2FARMDeployment%2Fazuredeploy.json)
|
||||
Alternatively, you can deploy the IoT Hub **and** Container Registry with this **Deploy to Azure** template:
|
||||
|
||||
[![Deploy to Azure Button for iotedge-vm-deploy](https://aka.ms/deploytoazurebutton)](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Fazure%2Fiotedgedev%2Fmain%2Fassets%2Fdeploy%2FARMDeployment%2Fazuredeploy.json)
|
||||
|
||||
> Note: If you do not need a Container Registry, or are planning to use a local registry, then you should run the **iotedgedev iothub setup** command instead of running this **Deploy to Azure** template, because the template includes a Container Registry.
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче