aboutsummaryrefslogtreecommitdiffstats
path: root/BUILD.md
diff options
context:
space:
mode:
authorBulat Gayazov <brgayazov@yandex-team.ru>2023-06-29 09:17:27 +0000
committerbrgayazov <bulat@ydb.tech>2023-06-29 12:17:27 +0300
commit0088b8b48f22725562d77695ef1c9603ac427c17 (patch)
treedf0b5085126345255c3e78380294c4c6cdcbc469 /BUILD.md
parentde77c1ac2d47b8ba61b738300b347584bb382b0e (diff)
downloadydb-0088b8b48f22725562d77695ef1c9603ac427c17.tar.gz
Added instructions how to build and run YDB CLI tests
Added instructions how to build and run YDB CLI tests Pull Request resolved: #274
Diffstat (limited to 'BUILD.md')
-rw-r--r--BUILD.md33
1 files changed, 27 insertions, 6 deletions
diff --git a/BUILD.md b/BUILD.md
index 0452ac2c31..066a8b410f 100644
--- a/BUILD.md
+++ b/BUILD.md
@@ -140,22 +140,43 @@ With enabled Ccache, you can finish the compilation of all targets on supported
## Build
-To build both YDB server (ydbd) and YDB CLI (ydb) run:
+To build all binary artifacts (server YDBD, client YDB, unittest binaries) run:
```bash
ninja
```
-To build only YDB CLI (ydb) run:
-```bash
-ninja ydb/apps/ydb/all
-```
-
A YDB server binary can be found at:
```
ydb/apps/ydbd/ydbd
```
+
+## Build and Test YDB CLI
+
+To build YDB CLI (ydb):
+```bash
+ninja ydb/apps/ydb/all
+```
+
A YDB CLI binary can be found at:
```
ydb/apps/ydb/ydb
```
+### Unit tests
+
+To build YDB CLI unit tests:
+```bash
+ninja ydb/public/lib/ydb_cli/all
+```
+
+To run tests execute:
+```bash
+cd ydb/public/lib/ydb_cli/
+ctest
+```
+
+### Functional tests
+
+Before launch tests you need to build YDB CLI and YDB server binaries.
+Also you can load [ydbd](https://ydb.tech/en/docs/downloads/#ydb-server) binary file and use it.
+To launch YDB CLI python tests run `ydb_cli` test suite via pytest according to this [instruction](ydb/tests/functional/README.md).