mix generate_test_cases (RowBinary v0.2.0) View Source
This task can be used to generate test cases with real results from ClickHouse. The resulting test cases will be written to ./test/generated_test.exs.
The @queries attribute contains a list of CH select statements, that will be run, returned in RowBinary format and used to automatically generate test cases from them.
The second tuple in the @queries attribute defines the parameters for the RowBinary.encode/2 function.
This requires a running ClickHouse server. Queries are run by starting clickhouse-client processes.
Currently there is no option to provide parameters to clickhouse-client (e.g. hostname, user, password, ..).