Skip to content

Commit 992bd46

Browse files
divided the tests into groups
1 parent 52c2a0b commit 992bd46

File tree

130 files changed

+932
-24
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

130 files changed

+932
-24
lines changed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ endif()
4747

4848
if (YDB_SDK_TESTS)
4949
enable_testing()
50-
add_subdirectory(tests)
50+
add_subdirectory(tests/ut)
51+
add_subdirectory(tests/integration)
5152
endif()
5253

5354
if (YDB_SDK_INSTALL)

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,20 @@ cmake --build --preset release
122122

123123
Specify a level of parallelism by passing the `-j<level>` option into the command below (e.g. `-j$(nproc)`)
124124

125+
Running all tests:
126+
125127
```bash
126128
ctest -j$(nproc) --preset release
127129
```
130+
131+
Running unit tests only:
132+
133+
```bash
134+
ctest -j$(nproc) --preset release -R .*_ut
135+
```
136+
137+
Running integration tests only:
138+
139+
```bash
140+
ctest -j$(nproc) --preset release -R .*_it
141+
```

tests/integration/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
add_subdirectory(basic_example_it)
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
add_ydb_test(NAME basic-example_it
2+
SOURCES
3+
main.cpp
4+
basic_example_data.cpp
5+
basic_example.cpp
6+
basic_example.h
7+
LINK_LIBRARIES
8+
yutil
9+
library-getopt
10+
YDB-CPP-SDK::Table
11+
GTest::gtest_main
12+
)

0 commit comments

Comments
 (0)