confluentinc / confluentinc/ksql
Add a flag in QueryTranslationTest that overrides the current outputs
- 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
Assessment
This issue has not been assessed yet.