confluentinc / confluentinc/ksql

Add a flag in QueryTranslationTest that overrides the current outputs

Open
#7,516 0 comments 0 reactions 1 assignee Claimed by @swist View on GitHub
core-infra round-robin
Dominant language
Java
Stars
315
Forks
1k
Avg merge
1d 7h
Merged PRs (30d)
36

Description

While I was working on updating QTT tests, I found myself overwhelmed of all the changes I had to do in the new QTT outputs. One of the tests, for instance `joins.json`, has so many test cases that I ended up running `mvn test -pl :ksqldb-functional-tests -Dtest=QueryTranslationTest -Dksql.test.files=joins.json` several times until finding all test cases that need to be updated.

It would be good/awesome to have a flag in the `QueryTranslationTest` that updates the test files automatically with the new changes, i.e. `mvn test -pl :ksqldb-functional-tests -Dtest=QueryTranslationTest -Dksql.test.files=joins.json -Doverride.test.outputs=true` or something similar. That would have helped me a lot on updating all the QTT tests I was working on. It is up to the develoeper to verify the new updated json file is correct before submitting a PR.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.