Skip to content
Merged
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
16 changes: 16 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,22 @@ Tests are split up into shards, which include:
2. `trace_server` -- tests for trace server backend
3. various integrations, like `openai`, `instructor`, etc -- these envs are isolated to simplify testing

Nox is the most thorough way to run the tests, as it sets important environment variables needed to run specific integrations and shards. However, it is slower. A combination of `uv` and `pytest` can be used for faster iteration when your code is agnostic to integration type, python version, etc.
```sh
uv sync --group test --active
uv run pytest
```

For even faster iteration, it is possible to limit scope to a single file or test. For example:
```sh
uv run pytest tests/trace/test_weave_client.py
```
or
```sh
uv run pytest tests/trace/test_weave_client.py::test_table_create
```


### Deprecating features

`weave` is moving quickly, and sometimes features need to be deprecated.
Expand Down
Loading