Skip to content

Commit 9bb83ed

Browse files
committed
bazel: unfied test suites
add common test suites across repositories
1 parent 7086910 commit 9bb83ed

File tree

3 files changed

+38
-1
lines changed

3 files changed

+38
-1
lines changed

BUILD

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,3 +104,21 @@ test_suite(
104104
tests = ["//src/cpp/tests:bm_kvs_cpp"],
105105
visibility = ["//visibility:public"],
106106
)
107+
108+
test_suite(
109+
name = "unit_tests",
110+
tests = [
111+
"test_kvs_cpp",
112+
"//src/rust/rust_kvs:tests",
113+
],
114+
visibility = ["//visibility:public"],
115+
)
116+
117+
test_suite(
118+
name = "cit_tests",
119+
tests = [
120+
"//tests/python_test_cases:cit_cpp",
121+
"//tests/python_test_cases:cit_rust",
122+
],
123+
visibility = ["//visibility:public"],
124+
)

tests/README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,26 @@ pytest -v . --build-scenarios --self-contained-html --html report.html --traces
6767
> Traces are collected using `stdout`.
6868
> Setting `--capture` flag (including `-s`) might cause traces to be missing from HTML report.
6969
70+
### Bazel execution
71+
72+
Run all Component Integration Tests:
73+
74+
```bash
75+
bazel test //:cit_tests
76+
```
77+
78+
When the dependencies in [requirements.txt](python_test_cases/requirements.txt) file are manually modified, the user should invoke command and commit changes:
79+
80+
```bash
81+
bazel run //tests/python_test_cases:requirements.update
82+
```
83+
84+
In order to update all dependencies use:
85+
86+
```bash
87+
bazel run //tests/python_test_cases:requirements.update -- --upgrade
88+
```
89+
7090
## Standalone execution of test scenarios
7191

7292
Test scenarios can be run independently from `pytest`.

tests/python_test_cases/requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# Fully resolved list of dependencies is required by Bazel.
21
psutil
32
pytest-metadata
43
pytest-env

0 commit comments

Comments
 (0)