Skip to content

Commit

Permalink
uv in the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
hellt committed Feb 5, 2025
1 parent f9bb779 commit 56ccc48
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions docs/manual/dev/test.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,19 @@
Containerlab's test program largely consists of:

- Go-based unit tests
- RobotFramework-based integration tests
- [RobotFramework](https://robotframework.org/)-based integration tests

## Integration Tests

The integration tests are written in RobotFramework and are located in the [`tests`][tests-dir] directory. The tests are run using the [`rf-run`][rf-run] command that wraps `robot` command. The tests are run in a Docker container, so you don't need to install RobotFramework on your local machine.

### Local execution

To execute the integration tests locally you have to install the python environment with the required dependencies. If you're using `pyenv` you can use the following commands:
To execute the integration tests locally you have to install the python environment with the required dependencies. If you're using [`uv`](https://docs.astral.sh/uv/) you can simply do:

1. Create a venv and activate it

```bash
pyenv virtualenv 3.11 clab-rf
pyenv shell clab-rf
```

2. Install the dependencies

```bash
pip install -r tests/requirements.txt
```
```
uv sync
```

Usually you would run the tests using the locally built containerlab binary that contains the unreleased changes. The typical workflow then starts with building the containerlab binary:

Expand Down

0 comments on commit 56ccc48

Please sign in to comment.