|
1 | | - |
| 1 | + |
2 | 2 |
|
3 | 3 |
|
4 | 4 | [Janus](https://github.com/meetecho/janus-gateway) WebRTC gateway Python async client. |
5 | 5 |
|
6 | 6 |  |
7 | 7 |  |
8 | 8 |  |
9 | | - |
| 9 | + |
10 | 10 |
|
11 | 11 | --- |
12 | 12 |
|
@@ -199,14 +199,34 @@ hatch run mkdocs build |
199 | 199 | hatch run +py=3.8 mkdocs build # to build in a specific python environment only, not all |
200 | 200 | ``` |
201 | 201 |
|
202 | | -#### Documentation Structure |
| 202 | +## Dev |
203 | 203 |
|
204 | | -- `docs/index.md` - Main documentation page |
205 | | -- `docs/session.md` - Session API documentation |
206 | | -- `docs/plugins.md` - Plugin API documentation |
207 | | -- `docs/transport.md` - Transport API documentation |
208 | | -- `mkdocs.yml` - MkDocs configuration file |
| 204 | +### Run unit tests |
209 | 205 |
|
| 206 | +Use following command to run unit tests and see all logs: |
| 207 | + |
| 208 | +```bash |
| 209 | +hatch test # Run all tests on all environments |
| 210 | +hatch test -- -s --log-cli-level=INFO --full-trace -- tests # Run all tests with all logs on a default environment |
| 211 | +hatch test .\tests\test_plugin.py::TestTransportHttp::test_plugin_echotest_create -- -s --log-cli-level=INFO --full-trace # Run a specific test with all logs on a default environment |
| 212 | +hatch test -i py=3.8 .\tests\test_plugin.py::TestTransportHttp::test_plugin_echotest_create -- -s --log-cli-level=INFO --full-trace # Run a specific test with all logs on a specific environment |
| 213 | +``` |
| 214 | + |
| 215 | +Generate code coverage: |
| 216 | + |
| 217 | +```bash |
| 218 | +# Not running it through all python environments because the webrtc connection might fail to setup. |
| 219 | +# That is a server configuration issue which naturally comes with integration tests like these. |
| 220 | +hatch test -i py=3.8 -c |
| 221 | +hatch env run -e py3.8 coverage html |
| 222 | +``` |
| 223 | + |
| 224 | +### Build and publish |
| 225 | + |
| 226 | +```bash |
| 227 | +hatch -e py3.8 build --clean |
| 228 | +hatch publish |
| 229 | +``` |
210 | 230 | ## Experiments |
211 | 231 |
|
212 | 232 | FFmpeg support for VideoRoom plugin has now been moved to `experiments` folder, together with GStreamer support. |
0 commit comments