Skip to content

Commit

Permalink
docs: update README.md (sparckles#1036)
Browse files Browse the repository at this point in the history
Encourage people to run all tests not just integration tests
  • Loading branch information
dave42w authored Nov 19, 2024
1 parent b28e71d commit 3f2e79a
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,19 @@ maturin develop --cargo-extra-args="--features=io-uring"
```
poetry run test_server
```
- Run tests
- Run all tests
```
pytest
```
- Run only the integration tests
```
pytest integration_tests
```
```
- Run only the unit tests (you don't need to be running the test_server for these)
```
pytest unit_tests
```
- Test (refer to `integration_tests/base_routes.py` for more endpoints)
```
curl http://localhost:8080/sync/str
Expand All @@ -202,7 +211,8 @@ curl http://localhost:8080/sync/str
- **tip:** One liners for testing changes!
```
maturin develop && poetry run test_server
maturin develop && pytest integration_tests

maturin develop && pytest
```
- **tip:** For IO-uring support, you can use the following command:
Expand Down

0 comments on commit 3f2e79a

Please sign in to comment.