doc: add more cmd in unit test documentation (#1963)

This commit is contained in:
Yufan Song
2024-05-22 19:47:03 +08:00
committed by GitHub
parent d18e6c85a0
commit 4292998ee2

View File

@@ -1,7 +1,23 @@
## Introduction
This folder contains unit tests that could be run locally by
This folder contains unit tests that could be run locally.
Run all test:
```bash
poetry run pytest ./tests/unit
```
Run specific test file:
```bash
poetry run pytest ./tests/unit/test_micro_agents.py
```
Run specific unit test
```bash
poetry run pytest ./tests/unit/test_micro_agents.py:test_coder_agent_with_summary
```
More details see [pytest doc](https://docs.pytest.org/en/latest/contents.html)