Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
logictest: add TestLogic_tmp for testing untracked logic test files
This commit improves the developer experience when working with logic tests. The logic test generator no longer generates a dedicated test for logic tests files prefixed with "_". The hard-coded `TestLogic_tmp` test has been added which runs all such logic test files. This allows developers to create and run temporary test files that are not checked into the repository, without repeatedly regenerating and reverting changes to the `generated_test.go` files. For example, if you add a git-ignored file logic test file, `pkg/sql/logictest/testdata/logic_test/__test`, you can run it with the `local` config with the command: ./dev test pkg/sql/logictest/tests/local -f TestLogic_tmp Previously, to facilitate running these types of tests, `./dev test` would automatically regenerate logic tests every time tests were run. This was primarily motivated by the desire to make testing temporary logic test files easier - a developer would not have to run `./dev gen logictest` every time they wanted to test a temporary file. However, this was a poor experience because it made running tests significantly slower, and logic tests generated for temporary logic test files would have to be reverted repeatedly. `TestLogic_tmp` eliminates the need for this automatic regeneration, so it has been removed. The `--no-gen` flag, which disabled automatic regeneration, has also been removed. When committing a new logic test file to the repository, developers must now run `./dev gen testlogic` to generate logic tests for it. Release note: None
- Loading branch information