Skip to content

Commit 2e050c0

Browse files
committed
README: Enhancement for OTE
Adding descriptions for building the binary and running the tests
1 parent df1ec55 commit 2e050c0

File tree

1 file changed

+21
-4
lines changed

1 file changed

+21
-4
lines changed

cmd/cluster-version-operator-tests/README.md

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,39 @@ It integrates [openshift-tests-extension](https://github.com/openshift-eng/opens
44
cluster-version-operator which allows openshift components to contribute tests to openshift-tests' suites with
55
extension binaries.
66

7+
## Build the executable binary
8+
In root folder, run below command to build executable binary:
9+
```console
10+
$ make build
11+
```
712

813
## Run the tests locally
914

10-
## Using the framework
15+
### Using the binary
16+
- run a test-suite
1117
```console
12-
$ hack/build-go.sh
13-
$ _output/<OS>/<ARCH>/cluster-version-operator-tests run-suite cluster-version-operator
18+
$ _output/<OS>/<ARCH>/cluster-version-operator-tests run-suite <test suite name>
1419
```
20+
where test suites can be listed by `_output/<OS>/<ARCH>/cluster-version-operator-tests info`.
1521

16-
## Using ginko-cli
22+
- run a single test case
23+
```console
24+
$ _output/<OS>/<ARCH>/cluster-version-operator-tests run-test <test case name>
25+
```
26+
where test names can be listed by `_output/<OS>/<ARCH>/cluster-version-operator-tests list`.
27+
28+
### Using ginkgo-cli
1729

1830
After [installing-ginkgo](https://onsi.github.io/ginkgo/#installing-ginkgo):
1931

2032
```console
2133
$ ginkgo ./test/...
2234
```
35+
or run a specific test
36+
```console
37+
$ ginkgo --focus "<test case name>" ./test/...
38+
```
39+
`test case name` is the text in g.It()
2340

2441
The output looks nicer this way.
2542

0 commit comments

Comments
 (0)