Skip to content

Commit afd8dd9

Browse files
committed
update test readme
1 parent e57771b commit afd8dd9

File tree

1 file changed

+28
-1
lines changed

1 file changed

+28
-1
lines changed

tests/README.md

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,31 @@ and run:
1818

1919
```
2020
pytest
21-
```
21+
```
22+
23+
If all test passes, the output should look like the following:
24+
25+
```shell
26+
========================================================================================== test session starts ===========================================================================================
27+
platform linux -- Python 3.10.13, pytest-7.4.2, pluggy-1.3.0
28+
rootdir: /media/dnth/Active-Projects/fastdup
29+
plugins: anyio-3.7.1, cov-4.1.0, mock-3.11.1
30+
collected 5 items
31+
32+
tests/examples/test_datasets_example.py . [ 20%]
33+
tests/unit/test_datasets.py .... [100%]
34+
35+
============================================================================================ warnings summary ============================================================================================
36+
tests/examples/test_datasets_example.py::test_datasets_example
37+
/home/dnth/anaconda3/envs/tests/lib/python3.10/site-packages/fastdup/fastdup_controller.py:385: UserWarning: No connected components found, try using a lower threshold
38+
warnings.warn(f'No connected components found, try using a lower threshold')
39+
40+
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
41+
====================================================================================== 5 passed, 1 warning in 9.12s ======================================================================================
42+
```
43+
44+
# Adding More Tests
45+
Include new tests in the approriate folders.
46+
47+
+ `unit/` - Put all unit tests here.
48+
+ `examples/` - Put all examples tests here.

0 commit comments

Comments
 (0)