Skip to content

Br update unit test command v2 #1372

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion doc/build.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,15 @@ Then, we can build and run tests.

```bash
go generate ./...
SQLFLOW_TEST_DB=mysql go test -v -q 1 ./...
SQLFLOW_TEST_DB=mysql go test -v -p 1 ./...
```

The commandline `go generate` is necessary to call `protoc` for translating gRPC interface and to call `goyacc` for generating the parser.

The environment variable `SQLFLOW_TEST_DB=mysql` specify MySQL as the SQL engine during testing. You can also choose `hive` for Apache Hive and `maxcompute` for Alibaba MaxCompute.

The command `go test` with `-p 1` argument is necessary to run all tests, otherwise you will encounter the same problem as this [`issue`](https://github.com/sql-machine-learning/sqlflow/issues/1283).

## Editing on Host

As the above `docker run` command binds the source code directory on the host computer to the container, we can edit the source code on the host using any editor, VS Code, Emacs, etc.
Expand Down