You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
│ ├───ghcomponents_tests <-- relative to gh components
15
+
│ │ .gitkeep
16
+
│ │
17
+
│ ├───package_tests <-- relative to the pypi package
18
+
│ │ .gitkeep
19
+
│ │
20
+
│ └───pybinds_tests <-- strictly pybinding
21
+
│ │ diffCheck.dll
22
+
│ │ diffcheck_bindings.cp39-win_amd64.pyd
23
+
│ │ Open3D.dll
24
+
│ │ test_pybind_pyver.py
25
+
│ │ test_pybind_units.py
26
+
│
27
+
├───test_data <-- here is where we put some .ply data
28
+
│ roof_quarter.ply
29
+
│
30
+
└───unit_tests <-- c++ backend, one for each header
31
+
DFLog.cc
32
+
DFPointCloudTest.cc
33
+
```
34
+
35
+
To run the tests, you can use the following commands:
36
+
```terminal
37
+
cmake -S . -B build -A x64 -DBUILD_PYTHON_MODULE=ON -DBUILD_TESTS=ON -DRUN_TESTS=ON
38
+
cmake --build build --config Release
39
+
```
40
+
41
+
(py_test)=
42
+
## Write Python tests
43
+
44
+
To write a test, you need to create a new file in the `tests/integration_tests` folder. Write a new `.py` test file and add it in the `cmake/tests.cmake` in the `add_test` function.
To write a test, you need to create a new file in the `tests/unit_tests` folder. Next add your file in the executable `${CPP_UNIT_TESTS}` in the `cmake/tests.cmake`.
0 commit comments