Skip to content

Commit

Permalink
Merge pull request #34 from thin-edge/docs-add-dev-instructions
Browse files Browse the repository at this point in the history
dev: update developer instructions
  • Loading branch information
reubenmiller authored Feb 7, 2024
2 parents 5803642 + 7c45db5 commit c10b2cb
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
dist/
.vscode/
.DS_Store
*.env

Expand Down
6 changes: 6 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"python.defaultInterpreterPath": "${workspaceFolder}/.venv/bin/python3",
"robot.language-server.python": "${workspaceFolder}/.venv/bin/python3",
"robot.python.executable": "${workspaceFolder}/.venv/bin/python3",
"python.envFile": "${workspaceFolder}/.env"
}
39 changes: 39 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,45 @@ To build the linux packages use the following steps:

The built packages are created under the `./dist` folder.

### Running system tests

You can run the system tests can be run locally, however if you're having problem, look at the [test.yaml](.github/workflows/test.yaml) workflow for the tests as this is known to work.
If you're using VS Code, then you can also install the following extensions to enable running tests via the `tests/*robot` files:
* robocorp.robocorp-code
* robocorp.robotframework-lsp

To run the tests you will need to have python3 >> 3.9 installed on your system, then run the following

1. Create a `.env` file, and set you Cumulocity IoT credentials

```
DEVICE_ID=ci_mydevice
C8Y_BASEURL=mytenant.eu-latest.cumulocity.com
C8Y_USER=admin
C8Y_PASSWORD="mypassword"
```

2. Startup the test setup, and bootstrap it

```
just up
just bootstrap
```

3. Setup the python3 virtual environment and install the test dependencies

```
just venv
```

4. Run the RobotFramework tests

```
just test
```

### Building UI

To build the ui use the following steps:
Expand Down

0 comments on commit c10b2cb

Please sign in to comment.